Ejemplo n.º 1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Form myForm = new frmViaggi();

            SetForm(myForm);
            myForm.Show();
        }
Ejemplo n.º 2
0
        private void tsBtnViaggi_Click(object sender, EventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(frmViaggi))
                {
                    form.Activate();
                    return;
                }
            }

            Form myForm = new frmViaggi();

            SetForm(myForm);
            myForm.Show();
        }