private void miTables_Click(object sender, EventArgs e) { string Caption = "Архив часовых значений группы 1"; if (!FindAndShow(Caption)) { frmTables form = new frmTables(Host, this, "hours", 1); childforms.Add(form); form.Text = Caption; form.MdiParent = this; form.Show(); } }
private void tsbMonths_Click(object sender, EventArgs e) { string Caption = "Архив месячных значений группы " + currGroup; if (!updater.FindAndShow(Caption)) { tableform = new frmTables(DataHost, PanelHost, "months", currGroup); updater.ChildForms().Add(tableform); tableform.Text = Caption; tableform.MdiParent = PanelHost; tableform.Show(); } }