diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 14:27:05 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 14:27:05 +0200 |
| commit | 1344a54c37f7cbba7a294674b4b733d72ee257ea (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| parent | 281610ac56799f6870c587a942495d91cd55b227 (diff) | |
| download | Tango-1344a54c.tar.gz Tango-1344a54c.zip | |
Hope it is fine
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs index 98eef6883..5e584f891 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs @@ -16,10 +16,7 @@ using Tango.PPC.Common.Navigation; using Tango.PPC.Common.Notifications; using Tango.PPC.Common.Printing; using Tango.PPC.Common.RemoteAssistance; -using Tango.PPC.Common.RemoteDesktop; using Tango.PPC.Common.Storage; -using Tango.PPC.Common.Synchronization; -using Tango.PPC.Common.ThreadLoading; using Tango.Settings; using Tango.SharedUI; using static Tango.SharedUI.Controls.NavigationControl; @@ -30,7 +27,7 @@ namespace Tango.PPC.Common /// Represents a PPC view model base class. /// </summary> /// <seealso cref="Tango.SharedUI.ViewModel" /> - public abstract class PPCViewModel : ViewModel, INavigationBlocker + public abstract class PPCViewModel : ViewModel, INavigationViewModel, INavigationBlocker { /// <summary> /// Gets the static observable entities adapter. @@ -112,24 +109,6 @@ namespace Tango.PPC.Common [TangoInject] public IEventLogger EventLogger { get; set; } - /// <summary> - /// Gets or sets the machine data synchronizer. - /// </summary> - [TangoInject] - public IMachineDataSynchronizer MachineDataSynchronizer { get; set; } - - /// <summary> - /// Gets or sets the remote desktop service. - /// </summary> - [TangoInject] - public IRemoteDesktopService RemoteDesktopService { get; set; } - - /// <summary> - /// Gets or sets the thread loading service. - /// </summary> - [TangoInject] - public IThreadLoadingService ThreadLoadingService { get; set; } - private PPCSettings _settings; /// <summary> /// Gets the main PPC settings. @@ -180,15 +159,6 @@ namespace Tango.PPC.Common } /// <summary> - /// Called when the navigation system has navigated to this VM view. - /// </summary> - /// <param name="fromVM">The view model instance of the previous view model</param> - public virtual void OnNavigatedTo(PPCViewModel fromVM) - { - - } - - /// <summary> /// Called when the navigation system has navigated from this VM view. /// </summary> public virtual void OnNavigatedFrom() @@ -197,22 +167,6 @@ namespace Tango.PPC.Common } /// <summary> - /// Called before the navigation system has navigated to this VM view. - /// </summary> - public virtual void OnBeforeNavigatedTo() - { - - } - - /// <summary> - /// Called before the navigation system has navigated from this VM view. - /// </summary> - public virtual void OnBeforeNavigatedFrom() - { - IsVisible = false; - } - - /// <summary> /// Raises the specified message using the default <see cref="TangoMessenger"/>. /// </summary> /// <typeparam name="T"></typeparam> @@ -266,7 +220,7 @@ namespace Tango.PPC.Common /// </summary> public virtual void OnApplicationReady() { - + } } |
