private void ExecuteEdit(object p) { if (p != null && p is Exam) { var exam = p as Exam; AddExamView view = new AddExamView(exam); view.ShowDialog(); } }
private void AddExam(object property) { AddExamView window = new AddExamView((Student)property); window.ShowDialog(); }
private void ExecuteOpen() { AddExamView view = new AddExamView(); view.ShowDialog(); }