From 94ac70f0eaf29fcca4ae3ff5552c52cad22df492 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 14 Feb 2018 10:55:19 +0200 Subject: Refactored all studio modules to use StudioModuleBase. --- .../DeveloperModule.cs | 54 +++++++++++----------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs index 1a405f861..6cdda4bc8 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/DeveloperModule.cs @@ -12,41 +12,43 @@ using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.Developer { - public class DeveloperModule : IStudioModule + /// + /// Represents the Machine Studio developer module. + /// + /// + public class DeveloperModule : StudioModuleBase { - private bool _isInitialized; - private bool _isLoaded; - - public string Name => "Developer"; - - public string Description => "Research and development, manage RML, STRIP and Process."; - - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/developer.jpg"); - - public FrameworkElement MainView => new MainView(); + /// + /// Gets the module name. + /// + public override string Name => "Developer"; - public bool IsInitialized => _isInitialized; + /// + /// Gets the module description. + /// + public override string Description => "Research and development, manage RML, STRIP and Process."; /// - /// Sets a value indicating whether this module is loaded. + /// Gets the module cover image. /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/developer.jpg"); - public Permissions Permission => Permissions.RunDeveloperModule; + /// + /// Gets the module entry point view. + /// + public override FrameworkElement MainView => new MainView(); - public void Dispose() - { - throw new NotImplementedException(); - } + /// + /// Gets the permission required to see and load this module. + /// + public override Permissions Permission => Permissions.RunDeveloperModule; - public void Initialize() + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public override void Dispose() { - if (!_isInitialized) - { - //Initialize.. - - _isInitialized = true; - } + } } } -- cgit v1.3.1