public MainViewModel() { //Example data bind OnPlanChanged(VMS.GetValue(sc => sc.PlanSetup)); //Handle plan changes VMS.Execute(sc => { sc.PlanSetupChanged += OnPlanChanged; }); }
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); }
public void Execute(Action <StandAloneContext> sacFunc) { _thread.Execute(sacFunc); }