Esempio n. 1
0
 public AddUserViewModel()
 {
     BackCommand = new DelegateCommands();
     BackCommand.ExecuteCommand = new Action <object>(Back);
     AddCommand = new DelegateCommands();
     AddCommand.ExecuteCommand = new Action <object>(addStudent);
 }
Esempio n. 2
0
 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();
        }
Esempio n. 4
0
 public RegisterViewModel()
 {
     BackCommand = new DelegateCommands();
     BackCommand.ExecuteCommand     = new Action <object>(Back);
     RegisterCommand                = new DelegateCommands();
     RegisterCommand.ExecuteCommand = new Action <object>(Register);
 }
Esempio n. 5
0
 public LoginViewModel()
 {
     LoginCommand = new DelegateCommands();
     LoginCommand.ExecuteCommand        = new Action <object>(Login);
     GoToRegisterCommand                = new DelegateCommands();
     GoToRegisterCommand.ExecuteCommand = new Action <object>(GoToRegister);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 8
0
 /// <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); });
 }
Esempio n. 9
0
        //关联命令属性
        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();
        }