private void тестConnectionToolStripMenuItem_Click(object sender, EventArgs e) { TestConnectionForm testConnection = new TestConnectionForm(); testConnection.MdiParent = this; testConnection.Show(); }
private void showFormTest() { try { TestConnectionForm testConnection = new TestConnectionForm(); testConnection.MdiParent = this; testConnection.Show(); } catch (InvalidOperationException exp) { Console.WriteLine(exp.ToString()); } catch (Exception exp) { Console.WriteLine(exp.ToString()); } }