static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var form      = new Lab1Form( );
            var startForm = new Form1();

            if (startForm.ShowDialog() == DialogResult.OK)
            {
                Application.Run(form);
            }
            else
            {
                Application.Exit();
            }
        }
Esempio n. 2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            var form = new Lab1Form();

            form.Show();
        }