private void numberingToolStripMenuItem_Click(object sender, EventArgs e) { SurveyNumbering frm = new SurveyNumbering(CurrentSurvey.SurveyCode); frm.frmParent = this.frmParent; frm.key = "Numbering"; frmParent.AddTab(frm, "Numbering", "Numbering"); }
private void cmdOpenNumbering_Click(object sender, EventArgs e) { if (GetTab("Numbering") != null) { tabControl1.SelectTab("Numbering"); return; } SurveyNumbering frm = new SurveyNumbering(); frm.frmParent = this; frm.key = "Numbering"; try { AddTab(frm, "Numbering", "Numbering"); } catch { } }