private void buttonNew_Click(object sender, EventArgs e) { var newDoctor = new NewDoctor(); var newDoctorPresenter = new NewDoctorPresenter(newDoctor); newDoctor.ShowDialog(); }
private void buttonOpen_Click(object sender, EventArgs e) { bool isEditView = true; var newDoctorEdit = new NewDoctor(isEditView); var newDoctorEditPresenter = new NewDoctorEditPresenter(newDoctorEdit, (DtoDoctor)gridView1.GetFocusedRow()); newDoctorEdit.ShowDialog(); }