blob: a45f9a8473788117a2141ee872d6823f6a4999af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
namespace Tango.MachineStudio.Common.Notifications
{
public interface INotificationProvider
{
ObservableCollection<TaskItem> TaskItems { get; }
TaskItem CurrentTaskItem { get; }
bool HasTaskItems { get; }
void PushTaskItem(TaskItem taskItem);
TaskItem PushTaskItem(String message);
void PopTaskItem(TaskItem taskItem);
bool? ShowModalWindow(Window window);
bool ShowModalWindow<T>(PackIconKind icon, String title, object context) where T : FrameworkElement;
bool ShowModalWindow(PackIconKind icon, String title, FrameworkElement content, object context);
bool? ShowDialog(PackIconKind icon, Brush iconColor, String message, bool hasCancel);
void ShowInfo(String message);
void ShowWarnning(String message);
void ShowError(String message);
bool ShowQuestion(String message);
}
}
|