public AddUserViewModel() { BackCommand = new DelegateCommands(); BackCommand.ExecuteCommand = new Action <object>(Back); AddCommand = new DelegateCommands(); AddCommand.ExecuteCommand = new Action <object>(addStudent); }
public UpdateUserViewModel() { BackCommand = new DelegateCommands(); BackCommand.ExecuteCommand = new Action <object>(Back); UpdateCommand = new DelegateCommands(); UpdateCommand.ExecuteCommand = new Action <object>(updateStudent);//修改方法 }
//关联命令属性 public MainViewModel() { AddCommand = new DelegateCommands(); AddCommand.ExecuteCommand = new Action <object>(addStudent); UpdateCommand = new DelegateCommands(); UpdateCommand.ExecuteCommand = new Action <object>(updateStudent);//修改方法 DeleteCommand = new DelegateCommands(); DeleteCommand.ExecuteCommand = new Action <object>(deleteStudent);//删除方法 SearchCommand = new DelegateCommands(); SearchCommand.ExecuteCommand = new Action <object>(searchStudent); //查找方法 SelectionChangedCommand = new DelegateCommands(); SelectionChangedCommand.ExecuteCommand = new Action <object>(selectUser); SaveCommand = new DelegateCommands(); SaveCommand.ExecuteCommand = new Action <object>(SaveUserInfo); SearchCommand = new DelegateCommands(); SearchCommand.ExecuteCommand = new Action <object>(searchStudent); LoadUserInfo(); }
public RegisterViewModel() { BackCommand = new DelegateCommands(); BackCommand.ExecuteCommand = new Action <object>(Back); RegisterCommand = new DelegateCommands(); RegisterCommand.ExecuteCommand = new Action <object>(Register); }
public LoginViewModel() { LoginCommand = new DelegateCommands(); LoginCommand.ExecuteCommand = new Action <object>(Login); GoToRegisterCommand = new DelegateCommands(); GoToRegisterCommand.ExecuteCommand = new Action <object>(GoToRegister); }
public FindUserViewModel() { BackCommand = new DelegateCommands(); BackCommand.ExecuteCommand = new Action <object>(Back); SearchCommand = new DelegateCommands(); SearchCommand.ExecuteCommand = new Action <object>(searchStudent); }
//constructor public LinkedListViewModel() { PushNewHead = new DelegateCommands(PushNewHeadExecute); AddNode = new DelegateCommands(AddNodeExecute); RemoveNode = new DelegateCommands(RemoveNodeExecute); ChangeValue = new DelegateCommands(ChangeValueExecute); }
/// <summary> /// It is for initialization of the command. /// </summary> public IcuPatientMonitorViewModel() { DischargePatientCommand = new DelegateCommands((object obj) => { this.DischargePatient(); }, (object obj) => { return(true); }); GetPatientInfoCommand = new DelegateCommands((object obj) => { this.GetPatientInfo(); }, (object obj) => { return(true); }); StartMonitoringCommand = new DelegateCommands((object obj) => { this.StartMonitoringSection(); }, (object obj) => { return(true); }); ConfigureBedsCommand = new DelegateCommands((object obj) => { this.ConfigureBed(); }, (object obj) => { return(true); }); AllocatePatientCommand = new DelegateCommands((object obj) => { this.Allocate(); }, (object obj) => { return(true); }); StopMonitoringCommand = new DelegateCommands((object obj) => { this.StopMonitoringSection(); }, (object obj) => { return(true); }); }
//关联命令属性 public MainViewModel() { DeleteCommand = new DelegateCommands(); DeleteCommand.ExecuteCommand = new Action <object>(deleteStudent);//删除方法 SelectionChangedCommand = new DelegateCommands(); SelectionChangedCommand.ExecuteCommand = new Action <object>(selectUser); JumpToUpdateUserCommand = new DelegateCommands(); JumpToUpdateUserCommand.ExecuteCommand = new Action <object>(JumpToUpdate); JumpToAddUserCommand = new DelegateCommands(); JumpToAddUserCommand.ExecuteCommand = new Action <object>(JumpToAddUser); JumpToFindUserCommand = new DelegateCommands(); JumpToFindUserCommand.ExecuteCommand = new Action <object>(JumpToFindUser); LoadUserInfo(); }