From 8a59643571080bfff715f0b0e4bb03e2dee4961a Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 12 Jun 2018 15:47:10 +0300 Subject: Starting splitting PPC to modules. --- .../Modules/Tango.PPC.Synchronization/MyModule.cs | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/MyModule.cs (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/MyModule.cs') diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/MyModule.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/MyModule.cs new file mode 100644 index 000000000..e53b902e0 --- /dev/null +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/MyModule.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media.Imaging; +using Tango.BL.Enumerations; +using Tango.PPC.Common; +using Tango.PPC.Synchronization.Views; +using Tango.SharedUI.Helpers; + +namespace Tango.PPC.Synchronization +{ + /// + /// Represents a PPC . + /// + /// + public class MyModule : PPCModuleBase + { + /// + /// Gets the module name. + /// + public override string Name + { + get + { + return "My Module"; + } + } + + /// + /// Gets the module description. + /// + public override string Description + { + get + { + return "Some Module Description"; + } + } + + /// + /// Gets the module cover image. + /// + public override BitmapSource Image + { + get + { + return ResourceHelper.GetImageFromResources("Images/ppc-module.png"); + } + } + + /// + /// Gets the module entry point view type. + /// + public override Type MainViewType + { + get + { + return typeof(MainView); + } + } + + /// + /// Gets the permission required to see and load this module. + /// + public override Permissions Permission + { + get + { + return Permissions.RunMachineStudio; + } + } + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public override void Dispose() + { + //Dispose module here... + } + } +} -- cgit v1.3.1