Пример #1
0
 public MainViewModel()
 {
     //Example data bind
     OnPlanChanged(VMS.GetValue(sc => sc.PlanSetup));
     //Handle plan changes
     VMS.Execute(sc =>
     {
         sc.PlanSetupChanged += OnPlanChanged;
     });
 }
Пример #2
0
 public MainViewModel()
 {
     //Initialize with first loaded plan if any
     OnPlanChanged(VMS.GetValue(sac => sac.PlanSetup));
     //Handle plan changes (in standalone mode)
     VMS.Execute(sac => sac.PlanSetupChanged += OnPlanChanged);
 }
Пример #3
0
 public void Execute(Action <StandAloneContext> sacFunc)
 {
     _thread.Execute(sacFunc);
 }