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.Stubs/StubsModule.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.Stubs/StubsModule.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs index 359ac2977..817c68b49 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Stubs/StubsModule.cs @@ -16,59 +16,39 @@ namespace Tango.MachineStudio.Stubs /// Represents a stubs execution Machine Studio module capable of executing stubs against the current connected machine using a C# script engine. /// </summary> /// <seealso cref="Tango.MachineStudio.Common.IStudioModule" /> - public class StubsModule : IStudioModule + public class StubsModule : StudioModuleBase { - private bool _isLoaded; - /// <summary> /// Gets the module name. /// </summary> - public string Name => "Stubs"; + public override string Name => "Stubs"; /// <summary> /// Gets the module description. /// </summary> - public string Description => "Execute machine tests using an interactive C# scripting editor"; + public override string Description => "Execute machine tests using an interactive C# scripting editor"; /// <summary> /// Gets the module cover image. /// </summary> - public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); + public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/stubs.jpg"); /// <summary> /// Gets the module entry point view. /// </summary> - public FrameworkElement MainView => new MainView(); - - /// <summary> - /// Sets a value indicating whether this module is loaded. - /// </summary> - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override FrameworkElement MainView => new MainView(); /// <summary> /// Gets the permission required to see and load this module. /// </summary> - public Permissions Permission => Permissions.RunSynchronizationModule; - - /// <summary> - /// Gets a value indicating whether this module has been initialized. - /// </summary> - public bool IsInitialized => true; + public override Permissions Permission => Permissions.RunSynchronizationModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> - public void Dispose() - { - //throw new NotImplementedException(); - } - - /// <summary> - /// Perform any operations required to initialize this module. - /// </summary> - public void Initialize() + public override void Dispose() { - //throw new NotImplementedException(); + } } } |
