private void visitEntryToolStripMenuItem_Click(object sender, EventArgs e) { if (!FormBuilder.IsFormUnique(this, FormEnum.Visit)) { var visit = new Visit(); var VisitPresenter = new VisitPresenter(visit); visit.MdiParent = this; visit.Show(); } }
private void buttonNew_Click(object sender, EventArgs e) { if (!FormBuilder.IsFormUnique(mainView, FormEnum.Visit)) { var visit = new Visit(); var VisitPresenter = new VisitPresenter(visit); visit.MdiParent = mainView; visit.Show(); } }