Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Form3 form3 = new Form3();
     this.Hide();
     form3.ShowDialog();
     this.Close();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (File.Exists("settings.ini"))
        {
        Hide();
        Engine.getMovie();
        using (Form3 movieSelection = new Form3())
            movieSelection.ShowDialog();
        Show();
        }
        else
        {
        this.Hide();
        MessageBox.Show("An Error Occured, Have you been to settings yet?");
        Form2 f2 = new Form2();
        f2.ShowDialog();
        this.Show();
        }
 }
Beispiel #3
0
 private void button3_Click(object sender, EventArgs e)
 {
     Form3 aForm3 = new Form3();
     aForm3.ShowDialog();
 }
Beispiel #4
0
        private void form3ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form form = new Form3();

            form.ShowDialog();
        }
Beispiel #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form3 f = new Form3(this);

            f.ShowDialog();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         bool  isOpen = false;
         Form3 form3  = new Form3();
         if (Application.OpenForms["Form3"] != null)
         {
             if ((Application.OpenForms["Form3"].Text).Equals("MSS Information Centre"))
             {
                 isOpen = true;
             }
             if (isOpen == true)
             {
                 form3.Focus();
                 this.Close();
             }
             else
             {
                 isOpen = true;
                 form3.ShowDialog();
                 form3.Focus();
                 //this.Close();
             }
         }//this.Close();
         else
         {
             form3.ShowDialog();
         }
     }
     else if (radioButton2.Checked)
     {
         bool  isOpen = false;
         Form8 form8  = new Form8();
         if (Application.OpenForms["Form8"] != null)
         {
             if ((Application.OpenForms["Form8"].Text).Equals("MSS Information Centre"))
             {
                 isOpen = true;
             }
             if (isOpen == true)
             {
                 form8.Focus();
                 this.Close();
             }
             else
             {
                 isOpen = true;
                 form8.ShowDialog();
                 form8.Focus();
                 //this.Close();
             }
         }//this.Close();
         else
         {
             form8.ShowDialog();
         }
     }
     else if (radioButton3.Checked)
     {
         bool   isOpen = false;
         Form13 form13 = new Form13();
         if (Application.OpenForms["Form13"] != null)
         {
             if ((Application.OpenForms["Form13"].Text).Equals("MSS Information Centre"))
             {
                 isOpen = true;
             }
             if (isOpen == true)
             {
                 form13.Focus();
                 this.Close();
             }
             else
             {
                 isOpen = true;
                 form13.ShowDialog();
                 form13.Focus();
                 //this.Close();
             }
         }//this.Close();
         else
         {
             form13.ShowDialog();
         }
     }
     else if (radioButton4.Checked)
     {
     }
 }
Beispiel #7
0
        private void button2_Click(object sender, EventArgs e)
        {
            Form3 registro = new Form3();

            registro.ShowDialog();
        }