aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
blob: dbaafa6bb7ccfbef1db65f84beb97ad3a1961c52 (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
44
45
46
47
48
49
50
51
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;
using Tango.PPC.Common.Notifications;
using Tango.Core;

namespace Tango.PPC.UI.Notifications
{
    public class DefaultNotificationProvider : ExtendedObject, INotificationProvider
    {
        private MessageBoxVM _currentMessageBox;
        public MessageBoxVM CurrentMessageBox
        {
            get { return _currentMessageBox; }
            private set { _currentMessageBox = value; RaisePropertyChangedAuto(); }
        }

        public bool HasMessageBox
        {
            get
            {
                return CurrentMessageBox != null;
            }
        }

        public Task ShowError(string message)
        {
            throw new NotImplementedException();
        }

        public Task ShowInfo(string message)
        {
            throw new NotImplementedException();
        }

        public Task ShowWarning(string message)
        {
            throw new NotImplementedException();
        }

        public Task<bool> ShowQuestion(string message)
        {
            throw new NotImplementedException();
        }
    }
}