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. --- .../MachineDesignerModule.cs | 34 +++++----------------- 1 file changed, 7 insertions(+), 27 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs index f5b0cba98..a6fa13f08 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs @@ -16,57 +16,37 @@ namespace Tango.MachineStudio.MachineDesigner /// Represents a machine designer Machine Studio module providing an interactive GUI for managing machine configurations. /// /// - public class MachineDesignerModule : IStudioModule + public class MachineDesignerModule : StudioModuleBase { - private bool _isLoaded; - /// /// Gets the module name. /// - public string Name => "Machine Designer"; + public override string Name => "Machine Designer"; /// /// Gets the module description. /// - public string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface."; + public override string Description => "Provides a graphical control over machine configurations. Create, manage and deploy machine configurations using simple drag and drop interface."; /// /// Gets the module cover image. /// - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); - - /// - /// Sets a value indicating whether this module is loaded. - /// - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); /// /// Gets the module entry point view. /// - public FrameworkElement MainView => new MainView(); + public override FrameworkElement MainView => new MainView(); /// /// Gets the permission required to see and load this module. /// - public Permissions Permission => Permissions.RunMachineDesignerModule; - - /// - /// Gets a value indicating whether this module has been initialized. - /// - public bool IsInitialized => true; + public override Permissions Permission => Permissions.RunMachineDesignerModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// - public void Dispose() - { - - } - - /// - /// Perform any operations required to initialize this module. - /// - public void Initialize() + public override void Dispose() { } -- cgit v1.3.1