diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-02-14 22:52:00 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-02-14 22:52:00 +0200 |
| commit | d5018576f325fb85983c4ad34c169d4b4e8d1a55 (patch) | |
| tree | 57e83d678e2221083b73a5289b506773868e1c63 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs | |
| parent | b934b152eea671fa06678baa0cdf7f8811e6d2d9 (diff) | |
| parent | b7b277736c7e3ec9258915cdd5a54e7b33ba1123 (diff) | |
| download | Tango-d5018576f325fb85983c4ad34c169d4b4e8d1a55.tar.gz Tango-d5018576f325fb85983c4ad34c169d4b4e8d1a55.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs | 43 |
1 files changed, 8 insertions, 35 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs index 82cd716b3..0ad6aa541 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs @@ -15,66 +15,39 @@ namespace Tango.MachineStudio.DB /// Represents a Machine Studio database module. /// </summary> /// <seealso cref="Tango.MachineStudio.Common.IStudioModule" /> - public class DBModule : IStudioModule + public class DBModule : StudioModuleBase { - private bool _isInitialized; - private bool _isLoaded; - /// <summary> /// Gets the module name. /// </summary> - public string Name => "Data Base"; + public override string Name => "Data Base"; /// <summary> /// Gets the module description. /// </summary> - public string Description => "Provides access to raw database tables."; + public override string Description => "Provides access to raw database tables."; /// <summary> /// Gets the module cover image. /// </summary> - public BitmapSource Image => SharedUI.Helpers.ResourceHelper.GetImageFromResources("Images/db.png"); + public override BitmapSource Image => SharedUI.Helpers.ResourceHelper.GetImageFromResources("Images/db.png"); /// <summary> /// Gets the module entry point view. /// </summary> - public FrameworkElement MainView => new MainDBView(); - - /// <summary> - /// Gets a value indicating whether this module has been initialized. - /// </summary> - public bool IsInitialized => _isInitialized; + public override FrameworkElement MainView => new MainDBView(); /// <summary> /// Gets the permission required to see and load this module. /// </summary> - public Permissions Permission => Permissions.RunDataBaseModule; - - /// <summary> - /// Sets a value indicating whether this module is loaded. - /// </summary> - public bool IsLoaded { get => _isLoaded; set => _isLoaded = value; } + public override Permissions Permission => Permissions.RunDataBaseModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> - /// <exception cref="NotImplementedException"></exception> - public void Dispose() + public override void Dispose() { - throw new NotImplementedException(); - } - - /// <summary> - /// Perform any operations required to initialize this module. - /// </summary> - public void Initialize() - { - if (!_isInitialized) - { - //Initialize - - _isInitialized = true; - } + } } } |
