Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            F1 FORM1 = new F1();

            FORM1.Show();
            this.Hide();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult rezultat = MessageBox.Show("Esti sigur ca vrei sa te intorci in meniu ?(nu vei putea sa te intorci inapoi)", "FOCUS", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (rezultat == DialogResult.Yes)
            {
                F1 f1 = new F1();
                f1.Show();
                this.Hide();
            }
            else
            {
                return;
            }
        }