Exemple #1
0
 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);
 }
Exemple #4
0
 public DeleteCommand(StudentCatalog catalog, StudentMasterDetailsViewModel viewModel)
 {
     _catalog   = catalog;
     _viewModel = viewModel;
 }
Exemple #5
0
 public DeleteCommand(StudentCatalog catalog, StudentPageViewModel viewModel)
 {
     _catalog   = catalog;
     _viewModel = viewModel;
 }
Exemple #6
0
 public DeleteCommand(StudentCatalog catalog, StudentPageViewModel viewModel)
     : base(catalog, viewModel)
 {
 }