Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }