From de099bd3b50b8ea52b212b8d322626582c2648be Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 22 Apr 2018 13:35:22 +0300 Subject: Implemented new TangoIOC container & TangoMessenger. Got rid of MVVMLite libs ! Got rid of IShutdownRequestBlocker, IShutdownListener, IModuleRequestListener. Implemented IStudioViewModel & StudioViewModel. --- .../Tango.MachineStudio.Common/IStudioViewModel.cs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs new file mode 100644 index 000000000..35ed50cd9 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Common +{ + /// + /// Represents a Machine Studio view model. + /// + public interface IStudioViewModel + { + /// + /// Called when the user has navigated in to the module. + /// + void OnNavigatedTo(); + + /// + /// Called when the user has navigated out of the module. + /// + void OnNavigatedFrom(); + + /// + /// Called when application is shutting down. + /// + void OnShuttingDown(); + + /// + /// Called before the application is shutting down. + /// Return false to cancel the shutdown in case an important process is in progress. + /// + /// + Task OnShutdownRequest(); + + /// + /// Called when another module has wants to navigate to this module with some arguments. + /// + /// The arguments. + void OnModuleRequest(params object[] args); + } +} -- cgit v1.3.1