blob: 168df019a14e12ab5be8e735de39176ab4cccd7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Common;
using Tango.PPC.Common.Modules;
using Tango.PPC.UI.ViewsContracts;
using Tango.SharedUI;
namespace Tango.PPC.UI.ViewModels
{
public class LayoutViewVM : PPCViewModel<ILayoutView>
{
[TangoInject]
public IPPCModuleLoader ModuleLoader { get; set; }
public override void OnApplicationStarted()
{
base.OnApplicationStarted();
ModuleLoader.ModulesLoaded += ModuleLoader_ModulesLoaded;
}
private void ModuleLoader_ModulesLoaded(object sender, EventArgs e)
{
View.ApplyModules(ModuleLoader.UserModules);
}
public override void OnViewAttached()
{
}
}
}
|