Exemple #1
0
 public TSL_AlertControlViewModel(TSL_AlertController ctrl)
 {
     this.Controller           = ctrl;
     this.PrepareCommand       = new RelayCommand(p => this.Controller.OnDoTask(Entities.eTslStatusType.Prepare), p => this.Controller.CanPrepare());
     this.ReceiveResultCommand = new RelayCommand(p => this.Controller.OnDoTask(Entities.eTslStatusType.Result), p => this.Controller.CanReceiveResult());
     this.ShowResultCommand    = new RelayCommand(p => this.Controller.OnShowResult(), p => this.Controller.CanShowResult());
 }
 public TSL_AlertOptionViewModel(TSL_AlertController ctrl)
 {
     this.Controller          = ctrl;
     this.ClearPrepareCommand = new RelayCommand(p => this.Controller.ClearStatus(Entities.eTslStatusType.Prepare), p => CanClearPrepare());
     this.ClearResultCommand  = new RelayCommand(p => this.Controller.ClearStatus(Entities.eTslStatusType.Result), p => CanClearResult());
 }