From a775178c063082eb6a401b4254a046133840af03 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Jun 2018 15:57:24 +0300 Subject: Working on PPC... --- .../PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs index 168df019a..4e200ada6 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs @@ -11,22 +11,40 @@ using Tango.SharedUI; namespace Tango.PPC.UI.ViewModels { + /// + /// Represents the layout view containing the main menu and all modules. + /// + /// public class LayoutViewVM : PPCViewModel { + /// + /// Gets or sets the module loader. + /// [TangoInject] public IPPCModuleLoader ModuleLoader { get; set; } + /// + /// Called when the application has been started. + /// public override void OnApplicationStarted() { base.OnApplicationStarted(); ModuleLoader.ModulesLoaded += ModuleLoader_ModulesLoaded; } + /// + /// Handles the ModulesLoaded event of the ModuleLoader. + /// + /// The source of the event. + /// The instance containing the event data. private void ModuleLoader_ModulesLoaded(object sender, EventArgs e) { View.ApplyModules(ModuleLoader.UserModules); } + /// + /// Called when the instance of IPPCView is available. + /// public override void OnViewAttached() { -- cgit v1.3.1