From f3fc87dd10b3d55591a84ecbfb0612769f0c09b9 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 28 Aug 2018 16:35:16 +0300 Subject: Working on BL Builders ! Working on making PPC work with builders.. --- .../PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs index 9b5c26984..50b9df550 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs @@ -33,23 +33,5 @@ namespace Tango.PPC.UI.Views InitializeComponent(); Instance = this; } - - public void ApplyModules(IEnumerable modules) - { - this.BeginInvoke(() => - { - foreach (var module in modules) - { - if (!NavigationControl.Elements.ToList().Exists(x => x.GetType() == module.MainViewType)) - { - LogManager.Default.Log("Loading module view " + module.Name + "..."); - FrameworkElement view = Activator.CreateInstance(module.MainViewType) as FrameworkElement; - SharedUI.Controls.NavigationControl.SetNavigationName(view, module.Name); - NavigationControl.Elements.Add(view); - module.Initialize(); - } - } - }); - } } } -- cgit v1.3.1