aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-13 19:41:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-13 19:41:19 +0200
commitee88fc31d9b1b8f4782c7103d91de2d1b11c211b (patch)
treefd988b09e9aea2cd0ccc6a6174d61d4e7811def7 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs
parent39d2d7ff77e3ac949db6d9adde861275401e5e57 (diff)
downloadTango-ee88fc31d9b1b8f4782c7103d91de2d1b11c211b.tar.gz
Tango-ee88fc31d9b1b8f4782c7103d91de2d1b11c211b.zip
Implemented StudioModuleBase.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs39
1 files changed, 9 insertions, 30 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs
index c75bcdf29..7e0fdd3a4 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModule.cs
@@ -16,58 +16,37 @@ namespace Tango.MachineStudio.Technician
/// Represents a machine studio technician module.
/// </summary>
/// <seealso cref="Tango.MachineStudio.Common.IStudioModule" />
- public class TechnicianModule : IStudioModule
+ public class TechnicianModule : StudioModuleBase
{
- private bool _isLoaded;
-
- /// <summary>
- /// Occurs when the module IsLoaded property has changed.
- /// </summary>
- public event EventHandler<bool> IsLoadedChanged;
-
/// <summary>
/// Gets the module name.
/// </summary>
- public string Name => "Technician";
+ public override string Name => "Technician";
/// <summary>
/// Gets the module description.
/// </summary>
- public string Description => "Provides access to low level machine components by exposing diagnostics and profiling tools.";
+ public override string Description => "Provides access to low level machine components by exposing diagnostics and profiling tools.";
/// <summary>
/// Gets the module cover image.
/// </summary>
- public BitmapSource Image => ResourceHelper.GetImageFromResources("Images/technician.jpg");
+ public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/technician.jpg");
/// <summary>
/// Gets the module entry point view.
/// </summary>
- public FrameworkElement MainView => new MachineTechView();
+ public override FrameworkElement MainView => new MachineTechView();
/// <summary>
/// Gets the permission required to see and load this module.
/// </summary>
- public Permissions Permission => Permissions.RunTechnicianModule;
-
- /// <summary>
- /// Gets a value indicating whether this module has been initialized.
- /// </summary>
- public bool IsInitialized => true;
-
- /// <summary>
- /// Sets a value indicating whether this module is loaded.
- /// </summary>
- public bool IsLoaded
- {
- get { return _isLoaded; }
- set { _isLoaded = value; IsLoadedChanged?.Invoke(this, value); }
- }
+ public override Permissions Permission => Permissions.RunTechnicianModule;
/// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
- public void Dispose()
+ public override void Dispose()
{
}
@@ -75,9 +54,9 @@ namespace Tango.MachineStudio.Technician
/// <summary>
/// Perform any operations required to initialize this module.
/// </summary>
- public void Initialize()
+ public override void Initialize()
{
-
+ IsInitialized = true;
}
}
}