aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-04-22 13:35:22 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-04-22 13:35:22 +0300
commitde099bd3b50b8ea52b212b8d322626582c2648be (patch)
treeeea98a7f7b073d6cf8ded47bddc3b3f3f5e7c430 /Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
parent8edd1a95962a5c1c2e73d15f209a9fb362ff884a (diff)
downloadTango-de099bd3b50b8ea52b212b8d322626582c2648be.tar.gz
Tango-de099bd3b50b8ea52b212b8d322626582c2648be.zip
Implemented new TangoIOC container & TangoMessenger.
Got rid of MVVMLite libs ! Got rid of IShutdownRequestBlocker, IShutdownListener, IModuleRequestListener. Implemented IStudioViewModel & StudioViewModel.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/ViewModel.cs')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/ViewModel.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs b/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
index af203c0d0..13b9206cd 100644
--- a/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
@@ -1,5 +1,4 @@
-using GalaSoft.MvvmLight.Messaging;
-using System;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
@@ -10,6 +9,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Tango.Core;
+using Tango.Core.DI;
namespace Tango.SharedUI
{
@@ -101,7 +101,7 @@ namespace Tango.SharedUI
/// <returns></returns>
protected virtual T PostMessage<T>(T message)
{
- Messenger.Default.Send<T>(message);
+ TangoMessenger.Default.Send<T>(message);
return message;
}
@@ -112,7 +112,7 @@ namespace Tango.SharedUI
/// <param name="handler">The handler.</param>
protected virtual void RegisterMessage<T>(Action<T> handler)
{
- Messenger.Default.Register<T>(this, handler);
+ TangoMessenger.Default.Register<T>(handler);
}
}