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