diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-14 10:55:19 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-14 10:55:19 +0200 |
| commit | 94ac70f0eaf29fcca4ae3ff5552c52cad22df492 (patch) | |
| tree | 0f1fbfe8ff4ad11cfda38153a92bce057fd7a71e /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs | |
| parent | ee88fc31d9b1b8f4782c7103d91de2d1b11c211b (diff) | |
| download | Tango-94ac70f0eaf29fcca4ae3ff5552c52cad22df492.tar.gz Tango-94ac70f0eaf29fcca4ae3ff5552c52cad22df492.zip | |
Refactored all studio modules to use StudioModuleBase.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/MachineDesignerModule.cs | 34 |
1 files changed, 7 insertions, 27 deletions
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. /// </summary> /// <seealso cref="Tango.MachineStudio.Common.IStudioModule" /> - public class MachineDesignerModule : IStudioModule + public class MachineDesignerModule : StudioModuleBase { - private bool _isLoaded; - /// <summary> /// Gets the module name. /// </summary> - public string Name => "Machine Designer"; + public override string Name => "Machine Designer"; /// <summary> /// Gets the module description. /// </summary> - 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."; /// <summary> /// Gets the module cover image. /// </summary> - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); - - /// <summary> - /// Sets a value indicating whether this module is loaded. - /// </summary> - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/machine-designer-module.jpg"); /// <summary> /// Gets the module entry point view. /// </summary> - public FrameworkElement MainView => new MainView(); + public override FrameworkElement MainView => new MainView(); /// <summary> /// Gets the permission required to see and load this module. /// </summary> - public Permissions Permission => Permissions.RunMachineDesignerModule; - - /// <summary> - /// Gets a value indicating whether this module has been initialized. - /// </summary> - public bool IsInitialized => true; + public override Permissions Permission => Permissions.RunMachineDesignerModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> - public void Dispose() - { - - } - - /// <summary> - /// Perform any operations required to initialize this module. - /// </summary> - public void Initialize() + public override void Dispose() { } |
