public StudentMasterDetailViewModel()
 {
     DisplayName = "Student List (method 2) - Detail view is embedded in Master view.";
     Model       = StudentEditMasterDetail.NewStudentMasterDetail();
     if (_model.Students.Count == 0)
     {
         ListItemId = -1;
     }
     else
     {
         ListItemId = _model.StudentEdit.StudentId;
     }
     PropertyChanged += OnStudentEditViewModelPropertyChanged;
 }
 public StudentMasterDetailViewModel()
 {
     DisplayName = "Student List (method 2) - It runs nicely under Windows.Forms and WebGUI.";
     Model       = StudentEditMasterDetail.NewStudentMasterDetail();
     if (_model.Students.Count == 0)
     {
         ListItemId = -1;
     }
     else
     {
         ListItemId = _model.StudentEdit.StudentId;
     }
     PropertyChanged += OnStudentEditViewModelPropertyChanged;
 }