aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-06 18:39:17 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-06 18:39:17 +0300
commitcff4a8079c4d352cfd47793c701650e62337ed6e (patch)
treeaf145431e541f08ed99b1d3ae377d8a59faedc4f /Software/Visual_Studio/PPC/Tango.PPC.Common
parent776d934a1adc8c58301e56f6639afdeeccb0dda6 (diff)
downloadTango-cff4a8079c4d352cfd47793c701650e62337ed6e.tar.gz
Tango-cff4a8079c4d352cfd47793c701650e62337ed6e.zip
Working on PPC..
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs2
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/MessageBoxVM.cs7
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs20
3 files changed, 19 insertions, 10 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
index e5a825013..917a3e168 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
@@ -15,7 +15,7 @@ namespace Tango.PPC.Common.Notifications
public interface INotificationProvider
{
/// <summary>
- /// Gets or sets the current message box.
+ /// Gets the current message box.
/// </summary>
MessageBoxVM CurrentMessageBox { get; }
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/MessageBoxVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/MessageBoxVM.cs
index dbb1d0346..b626df880 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/MessageBoxVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/MessageBoxVM.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Windows.Media;
using System.Windows.Media.Imaging;
using Tango.PPC.Common.Notifications;
@@ -11,8 +12,14 @@ namespace Tango.PPC.Common.Notifications
{
public class MessageBoxVM : DialogViewVM
{
+ public String Title { get; set; }
+
public BitmapSource Icon { get; set; }
+ public Brush Brush { get; set; }
+
public String Message { get; set; }
+
+ public bool HasCancel { get; set; }
}
}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
index 58ad2fbed..d9d7097e0 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Tango.Core.DI;
using Tango.PPC.Common.Application;
using Tango.PPC.Common.Authentication;
using Tango.PPC.Common.Navigation;
@@ -14,13 +15,17 @@ namespace Tango.PPC.Common
{
public abstract class PPCViewModel : ViewModel
{
- public IPPCApplicationManager ApplicationManager { get; private set; }
+ [TangoInject]
+ public IPPCApplicationManager ApplicationManager { get; set; }
- public IAuthenticationProvider AuthenticationProvider { get; private set; }
+ [TangoInject]
+ public IAuthenticationProvider AuthenticationProvider { get; set; }
- public INavigationManager NavigationManager { get; private set; }
+ [TangoInject]
+ public INavigationManager NavigationManager { get; set; }
- public INotificationProvider NotificationProvider { get; private set; }
+ [TangoInject]
+ public INotificationProvider NotificationProvider { get; set; }
private PPCSettings _settings;
public PPCSettings Settings
@@ -37,12 +42,9 @@ namespace Tango.PPC.Common
private set { _settings = value; }
}
- public PPCViewModel(IPPCApplicationManager application, IAuthenticationProvider authentication, INavigationManager navigation, INotificationProvider notification)
+ public PPCViewModel()
{
- ApplicationManager = application;
- AuthenticationProvider = authentication;
- NavigationManager = navigation;
- NotificationProvider = notification;
+
}
public abstract void OnApplicationStarted();