Example #1
0
        private void тестConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TestConnectionForm testConnection = new TestConnectionForm();

            testConnection.MdiParent = this;
            testConnection.Show();
        }
Example #2
0
        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());
            }
        }