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