private void SetupCommands()
 {
     DeleteManyCommand   = new CommandBase <StudentListViewModel>("Delete", ExecuteDeleteMany, x => SelectedStudent != null && SelectedStudents.Any());
     ShowAddModalCommand = new CommandBase <StudentListViewModel>("Add Student", ExecuteShowAddModalCommand);
 }
Esempio n. 2
0
 public bool CanDeleteStudent()
 {
     return(SelectedStudents != null && SelectedStudents.Any());
 }