From 0bd3760bec105a00efa0fe624da2eb82d85d06c9 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 14 Jan 2018 16:16:08 +0200 Subject: Added code comments for: MachineStudio.DB --- .../Modules/Tango.MachineStudio.DB/DBModule.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs') 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 0928d2a1f..4f751d9da 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/DBModule.cs @@ -11,27 +11,59 @@ using Tango.MachineStudio.DB.Views; namespace Tango.MachineStudio.DB { + /// + /// Represents a Machine Studio database module. + /// + /// public class DBModule : IStudioModule { + /// + /// The is initialized + /// private bool _isInitialized; + /// + /// Gets the module name. + /// public string Name => "Data Base"; + /// + /// Gets the module description. + /// public string Description => "Provides access to raw database tables."; + /// + /// Gets the module cover image. + /// public BitmapSource Image => SharedUI.Helpers.ResourceHelper.GetImageFromResources("Images/db.png"); + /// + /// Gets the module entry point view. + /// public FrameworkElement MainView => new MainDBView(); + /// + /// Gets a value indicating whether this module has been initialized. + /// public bool IsInitialized => _isInitialized; + /// + /// Gets the permission required to see and load this module. + /// public Permissions Permission => Permissions.RunDataBaseModule; + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + /// public void Dispose() { throw new NotImplementedException(); } + /// + /// Perform any operations required to initialize this module. + /// public void Initialize() { if (!_isInitialized) -- cgit v1.3.1