コード例 #1
0
 public ActionButton(LoThuocEditViewModel viewModel)
 {
     this.viewModel = viewModel;
     this.viewModel.PropertyChanged += (s, e) =>
     {
         if (this.CanExecuteChanged != null)
         {
             this.CanExecuteChanged(this, new EventArgs());
         }
     };
 }
コード例 #2
0
 public ActionButton(LoThuocEditViewModel viewModel)
 {
     this.viewModel = viewModel;
     this.viewModel.PropertyChanged += (s, e) =>
     {
         if (this.CanExecuteChanged != null)
         {
             this.CanExecuteChanged(this, new EventArgs());
         }
     };
 }