blob: 937a39ec25caf9acd024ca712017a27518c59612 (
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);
void ShowModalDialog<View, VM>(Action<VM> onAccept, Action onCancel) where View : FrameworkElement where VM : DialogViewVM;
void ShowModalDialog<VM>(Action<VM> onAccept, Action onCancel) where VM : DialogViewVM;
void ShowModalDialog<VM>(Action<VM> onAccept) where VM : DialogViewVM;
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);
}
}
|