예제 #1
0
파일: Form1.cs 프로젝트: zn1ne/EmuLauncher
 private void aboutThisProgramToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox1 a = new AboutBox1();
     a.Show();
 }
예제 #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     AboutBox1 a = new AboutBox1();
     a.Show();
 }
예제 #3
0
 private void applicationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox1 ab1 = new AboutBox1();
     ab1.Show();
 }
예제 #4
0
 private void Form1_HelpButtonClicked(object sender, CancelEventArgs e)
 {
     AboutBox1 about = new AboutBox1();
     about.ShowDialog();
     SendKeys.Send("{ESC}");
 }
 private void button1_Click(object sender, EventArgs e)
 {
     AboutBox1 about = new AboutBox1();
     about.ShowDialog();
 }
예제 #6
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutBox1 About = new AboutBox1();
     About.Show();
 }
예제 #7
0
        private void aboutUsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox1 a = new AboutBox1();

            a.Show();
        }
예제 #8
0
        //Lanza el módulo de informacion
        private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox1 ab = new AboutBox1();

            ab.ShowDialog();
        }
예제 #9
0
        public void cekni()
        {
            AboutBox1 usr = new AboutBox1(this);

            #region 123
            if (new[] { button1.BackColor.ToArgb(), button2.BackColor.ToArgb(), button3.BackColor.ToArgb() }.All(x => x == button1.BackColor.ToArgb()))
            {
                if (button1.BackColor == Color.Red)
                {

                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button1.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();

                }
            }
            #endregion
            #region 456
            else if (new[] { button4.BackColor.ToArgb(), button5.BackColor.ToArgb(), button6.BackColor.ToArgb() }.All(x => x == button4.BackColor.ToArgb()))
            {
                if (button4.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button4.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
                else { usr.label1.Text = "F**K"; }

            }
            #endregion
            #region 789
            else if (new[] { button7.BackColor.ToArgb(), button8.BackColor.ToArgb(), button9.BackColor.ToArgb() }.All(x => x == button7.BackColor.ToArgb()))
            {
                if (button7.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button7.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region 147
            else if (new[] { button1.BackColor.ToArgb(), button4.BackColor.ToArgb(), button7.BackColor.ToArgb() }.All(x => x == button1.BackColor.ToArgb()))
            {
                if (button1.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button1.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region 258
            else if (new[] { button2.BackColor.ToArgb(), button5.BackColor.ToArgb(), button8.BackColor.ToArgb() }.All(x => x == button2.BackColor.ToArgb()))
            {
                if (button2.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button2.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region 369
            else if (new[] { button3.BackColor.ToArgb(), button6.BackColor.ToArgb(), button9.BackColor.ToArgb() }.All(x => x == button3.BackColor.ToArgb()))
            {
                if (button3.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button3.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region 159
            else if (new[] { button1.BackColor.ToArgb(), button5.BackColor.ToArgb(), button9.BackColor.ToArgb() }.All(x => x == button1.BackColor.ToArgb()))
            {
                if (button1.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button1.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region 357
            else if (new[] { button3.BackColor.ToArgb(), button5.BackColor.ToArgb(), button7.BackColor.ToArgb() }.All(x => x == button3.BackColor.ToArgb()))
            {
                if (button3.BackColor == Color.Red)
                {
                    usr.label1.Text = "Vyhrál H2";
                    usr.label1.BackColor = Color.Red;
                    usr.label1.Visible = true; usr.Show();
                }
                else if (button3.BackColor == Color.Green)
                {
                    usr.label1.Text = "Vyhrál H1";
                    usr.label1.BackColor = Color.Green;
                    usr.label1.Visible = true; usr.Show();
                }
            }
            #endregion
            #region tied
            else if (button1.Enabled==false){
                if(button2.Enabled==false){
                    if(button3.Enabled==false){
                        if(button4.Enabled==false){
                            if(button5.Enabled==false){
                                if(button6.Enabled==false){
                                    if(button7.Enabled==false){
                                        if(button8.Enabled==false){
                                            if(button9.Enabled==false){
                                                                    usr.label1.Text = "Remíza";
                                                                    usr.label1.BackColor = Color.AliceBlue;
                                                                    usr.label1.Visible = true;
                                                                    usr.Show();
                                                                    this.Enabled = false;
                                                                    try{ serv.Stop();} catch{client.Disconnect();}
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

            }
            #endregion
        }
예제 #10
0
        private void helpBtn_Click(object sender, EventArgs e)
        {
            AboutBox1 abBox = new AboutBox1();

            abBox.Show();
        }
예제 #11
0
        private void button1_Click(object sender, EventArgs e)
        {
            AboutBox1 about = new AboutBox1();

            about.ShowDialog();
        }