private void edit(Student obj) { // EditViewModel editVM = new EditViewModel(obj); // _dialogService.ShowDialog(editVM); EditViewModel editVM = ViewManager.Show<EditViewModel>(); editVM.Student = obj ; editVM.Name = obj.Name; }
private bool canEdit(Student arg) { return true; }
/// <summary> /// Initializes a new instance of the EditViewModel class. /// </summary> public EditViewModel(Student student) { _student = student; _name = _student.Name; }