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