private void шаблониToolStripMenuItem_Click(object sender, EventArgs e) { var child = new AddTemplateForm(); child.MdiParent = this; child.Show(); }
private void btnAddTemplate_Click(object sender, EventArgs e) { captureManager.State = States.ADD_TEMPLATE; AddTemplateForm atf = new AddTemplateForm(captureImageBox.Width, captureImageBox.Height); if (atf.ShowDialog() == DialogResult.OK) { Session.Instance.Modified = true; RefreshSessionTree(); } }