public StudentMasterDetailsViewModel() { _studentCatalog = new StudentCatalog(); _factory = new StudentViewModelFactory(); _studentItemViewModelSelected = null; _deleteCommand = new DeleteCommand(_studentCatalog, this); }
public List <StudentDataViewModel> GetStudentDataViewModelCollection(StudentCatalog catalog) { List <StudentDataViewModel> items = new List <StudentDataViewModel>(); foreach (Student s in catalog.Students) { items.Add(CreateDataViewModel(s)); } return(items); }
public StudentPageViewModel() { _studentCatalog = new StudentCatalog(); _studentSelected = null; _deleteCommand = new DeleteCommand(_studentCatalog, this); }
public DeleteCommand(StudentCatalog catalog, StudentMasterDetailsViewModel viewModel) { _catalog = catalog; _viewModel = viewModel; }
public DeleteCommand(StudentCatalog catalog, StudentPageViewModel viewModel) { _catalog = catalog; _viewModel = viewModel; }
public DeleteCommand(StudentCatalog catalog, StudentPageViewModel viewModel) : base(catalog, viewModel) { }