private bool _closeWay; //true if closed by option Exit, false - otherwise public DoctorForm(EnterForm EnterView) { InitializeComponent(); _presenter = new DoctorPresenter(this); _presenter.initView(); _EnterView = EnterView; _closeWay = false; }
private void doctorToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormBuilder.IsFormUnique(this, FormEnum.Doctor)) { var doctor = new Doctor(this); var doctorPresenter = new DoctorPresenter(doctor); doctor.MdiParent = this; doctor.Show(); } }