Exemplo n.º 1
0
        private void activar_formulario_consultas(string us)
        {
            //Activo el thread del formulario de las diferentes consultas

            consultas = new Form4(server);
            consultas.Text = USER;
            consultas.ShowDialog();
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (isOK() && textBox1.Text == "root" && textBox2.Text == "123456")
     {
         Form myForm = new Form4();
         myForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("密码错误!请重新输入");
     }
 }
Exemplo n.º 3
0
 internal string GetUserName()
 {
     Form4 get = new Form4();
     get.Show();
     string _name;
     while (get.getName() == "")
     {
         Application.DoEvents();
     }
     _name = get.getName();
     if (_name != "")
     {
         get.Dispose();
     }
     return _name ;
 }
Exemplo n.º 4
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     Form4 FormaCzwarta = new Form4(this);
     FormaCzwarta.Owner = this;
     FormaCzwarta.ShowDialog();
 }
Exemplo n.º 5
0
 private void unlockToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 request = new Form4();
     request.ShowDialog();
 }
Exemplo n.º 6
0
        public void Afisare_Forma(string Text_Forma, Form frn, string Close_or_Hide)
        {
            Form f = new Form();

            switch (Text_Forma)
            {
            case "MENIU": f = new Form1(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "LECTII": f = new Form2(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA INTRODUCERE1":
                f = new Form3(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA INTRODUCERE2":
                f = new Form4(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA INTRODUCERE3":
                f = new Form5(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI1":
                f = new Form6(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI2":
                f = new Form7(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI3":
                f = new Form8(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI4":
                f = new Form9(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI5":
                f = new Form10(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA CAZURI6":
                f = new Form11(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "CONGRUENTA DREPTUNGHICE":
                f = new Form12(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "TESTE":
                f = new Form16(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "TEST USOR":
                f = new Test_Usor_Pagina_1(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "TEST MEDIU":
                f = new Test_Mediu(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;

            case "TEST GREU":
                f = new Test_Greu(); f.Show();
                Verifica_daca_Close_sau_Hide(Close_or_Hide, frn);
                break;
            }
        }
Exemplo n.º 7
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form4 f = new Form4();

            f.Show();
        }
Exemplo n.º 8
0
        private void form4ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form4 frm = new Form4();

            frm.Show();
        }
Exemplo n.º 9
0
 private void button1_Click(object sender, EventArgs e)
 {
     Form4 form4 = new Form4();
     form4.Show();
 }
Exemplo n.º 10
0
        private void button2_Click(object sender, EventArgs e)
        {
            Form4 ob1 = new Form4();

            ob1.Show();
        }
Exemplo n.º 11
0
        private void pictureBox5_Click(object sender, EventArgs e) //彈出頭像表單
        {
            Form4 f4 = new Form4();

            f4.Show();
        }
Exemplo n.º 12
0
        private void button2_Click(object sender, EventArgs e)
        {
            Form4 a = new Form4();

            a.Show(this);
        }
Exemplo n.º 13
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form4 form = new Form4(); //ดึง form มาใช้

            form.Show();              //แสดง from ที่ดึงมา
        }
Exemplo n.º 14
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form4 frm = new Form4();

            frm.ShowDialog();
        }
Exemplo n.º 15
0
 private void escritorioToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 form4 = new Form4();
     form4.MdiParent = this;
     form4.Show();
 }
Exemplo n.º 16
0
 private void button1_Click(object sender, EventArgs e)
 {
     Form4 ofr = new Form4();
     //ofr.MdiParent = this.MdiParent;
     ofr.ShowDialog();
 }
Exemplo n.º 17
0
 private void button8_Click(object sender, EventArgs e)
 {
     List<System.Windows.Forms.Button> a = new List<Button>();
     a.Add(this.button1);
     a.Add(this.button2);
     a.Add(this.button3);
     a.Add(this.button4);
     a.Add(this.button5);
     Form f = new Form4(false, ref a);
     f.Show();
 }
Exemplo n.º 18
0
 private void toolStripButton3_Click(object sender, EventArgs e)
 {
     Form4 f4 = new Form4();
     f4.ShowInTaskbar = false;
     f4.Owner = this;
     f4.Show();
 }
Exemplo n.º 19
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool exep = false;

            try
            { string codBarras, nome, descricao, preco, estoque, unidade, tipo;
              codBarras = codigo.Text;
              nome      = nome1.Text;
              descricao = descriçao.Text;
              preco     = preco1.Text;
              estoque   = estoque1.Text;
              unidade   = unid.Text;
              tipo      = tipo1.Text;

              if (string.IsNullOrWhiteSpace(codigo.Text))
              {
                  throw new Exception(" Codigo de barras vazio");
              }
              try
              {
                  Convert.ToInt64(codigo.Text);
              }
              catch
              {
                  throw new Exception(" O codigo de barras deve ser numero");
              }
              if (string.IsNullOrWhiteSpace(nome1.Text))
              {
                  throw new Exception(" Nome está vazio");
              }
              if (string.IsNullOrWhiteSpace(descriçao.Text))
              {
                  throw new Exception(" Descrição está vazio");
              }
              if (string.IsNullOrWhiteSpace(preco1.Text))
              {
                  throw new Exception("Preço está vazio");
              }
              if (string.IsNullOrWhiteSpace(estoque1.Text))
              {
                  throw new Exception(" Estoque está vazio");
              }
              if (string.IsNullOrWhiteSpace(unid.Text))
              {
                  throw new Exception("Unidade está vazio");
              }
              if (string.IsNullOrWhiteSpace(tipo1.Text))
              {
                  throw new Exception(" tipo está vazio");
              }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "ERRO", MessageBoxButtons.OK, MessageBoxIcon.Error);
                exep = true;
            }
            if (exep == false)
            {
                this.Hide();
                Form4 OutroForm = new Form4();
                OutroForm.ShowDialog();
                this.Close();
            }
        }
Exemplo n.º 20
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Form4 frm4 = new Form4();

            frm4.Show();
        }
Exemplo n.º 21
0
 private void itemsToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     Form4 updateitemform = new Form4();
     if (updateitemform.ShowDialog() == DialogResult.OK)
     {
         updateitemform.Close();
         DataTable dt = new DataTable();
         db.dataGrid(dt, "itemtable");
         dataGridView1.DataSource = dt;
         this.squery = "items";
         textBox1.SelectionStart = textBox1.Text.Length;
         textBox1.Font = new Font(textBox1.Font, FontStyle.Italic);
         textBox1.ForeColor = Color.Gray;
         textBox1.Text = "Items";
         textBox1.Enabled = false;
         textBox1.Enabled = true;
     }
 }
Exemplo n.º 22
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (SignUp.Checked)
            {
                Form2 F2 = new Form2();
                F2.ShowDialog();
                nombre     = F2.SetNombre();
                usuario    = F2.SetUsuario();
                contraseña = F2.SetContraseña();
                // Quiero saber si me he podido dar de alta o no
                string mensaje = "1/" + nombre + "/" + usuario + "/" + contraseña;
                // Enviamos al servidor el nombre tecleado

                byte[] msg = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
            else if (LogIn.Checked)
            {
                Form3 F3 = new Form3();

                F3.ShowDialog();
                user_login     = F3.SetUser();
                password_login = F3.SetPassword();
                // Quiere loguearse

                string mensaje = "2/" + user_login + "/" + password_login;
                // Enviamos al servidor el nombre tecleado
                byte[] msg = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
            else if (consulta_fecha.Checked)
            {
                Form4 F4 = new Form4();

                F4.ShowDialog();
                fecha = F4.getFecha();

                string mensaje = "3/" + fecha;
                // Enviamos al servidor el nombre tecleado
                byte[] msg = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
            else if (consulta_duracion.Checked)
            {
                Form5 F5 = new Form5();
                F5.ShowDialog();
                duracion = F5.getDuracion();

                string mensaje = "4/" + duracion;
                // Enviamos al servidor la duracion que nos han pasado por consola
                byte[] msg = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
            else if (consulta_lista.Checked)
            {
                string mensaje = "5/";
                // Enviamos el código pertinente a la solicitud
                byte[] msg = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
            else if (invitar.Checked)
            {
                Form6 F6 = new Form6();
                F6.setListado(conectados);
                F6.ShowDialog();
                string invitados = F6.GetListado();
                string mensaje   = "6/" + usuario + "/" + invitados; //    6/anakilator/1/juanito23
                byte[] msg       = System.Text.Encoding.ASCII.GetBytes(mensaje);
                server.Send(msg);
            }
        }
Exemplo n.º 23
0
 //登录按键响应事件
 private void ButtonLogin_Click(object sender, EventArgs e)
 {
     //新建ClassSqlConnect类,调用重构的ViewCount方法返回从数据库中查询的结果
     ClassSqlConnect log = new ClassSqlConnect();
     SqlDataReader reader = log.ViewCount(ComboxUserName.Text.ToString(),TxtPassword.Text.ToString());
     if (reader.Read())//判断有数据,说明登录成功
     {
         /*保存账号信息,将这部分信息保存在数据库(XML)中更好*/
         ComboxUserName.Items.Add(ComboxUserName.Text.ToString());
         Form nfm;
         //提取用户名信息
         string UName = reader[1].ToString();
         MessageBox.Show("欢迎你,"+ UName);
         //提取权限信息并选择应打开的界面
         switch((int)reader[2])
         {
             case 0:
                 nfm = new Form2();//系统管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 1:
                 nfm = new Form7();//人事经理管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 2:
                 nfm = new Form3();//人事员工管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 3:
                 nfm = new Form8();//财务经理管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 4:
                 nfm = new Form4();//财务员工管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 5:
                 nfm = new Form9();//销售经理管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 6:
                 nfm = new Form6();//销售员工管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 7:
                 nfm = new Form10();//仓库经理管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             case 8:
                 nfm = new Form5();//仓库员工管理界面
                 this.Hide();
                 if (nfm.ShowDialog() == DialogResult.OK)
                 {
                     this.Show();
                 }
                 break;
             default:
                 MessageBox.Show("你没有登录权限," + UName,"没有权限");
                 ComboxUserName.Text = "";
                 TxtPassword.Text = "";
                 break;
         }
     }
     else
     {
         MessageBox.Show("用户名或密码错误!","错误");
         TxtPassword.Text = "";
     }
     //调用自定义的Close方法关闭sql连接
     log.Close();
 }
Exemplo n.º 24
0
 //重新开始游戏,初始化
 private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
 {
     x = zuobiao(e.X);
     y = zuobiao(e.Y);
     if (point[x, y] == 0 && x > 0 && y > 0 && x < 17 && y < 17)
     {
         num++;
         jilux[num] = x;
         jiluy[num] = y;
         if (num % 2 == 0)
         {
             point[x, y] = 2;
         }
         else
         {
             point[x, y] = 1;
         }
         /*计算此处颜色*/
         Graphics graph = this.pictureBox1.CreateGraphics();                       /*新建一个画布*/
         graph.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; /*让画出的图像更圆滑*/
         Brush bush;                                                               /*新建画刷*/
         if (point[x, y] == 1)
         {
             bush = new SolidBrush(Color.Black);
         }
         else
         {
             bush = new SolidBrush(Color.White);
         }
         /*画刷颜色确定*/
         graph.FillEllipse(bush, x * bianchang - 15, y * bianchang - 15, 30, 30);
         //画棋子
         if (judge(x, y, point[x, y]) == 1)
         {
             System.Media.SoundPlayer sp = new SoundPlayer();
             sp.SoundLocation = @"2.wav";
             sp.PlayLooping();
             if (num % 2 == 1)
             {
                 Form3 fm = new Form3();
                 fm.Show();//显示输赢窗体
             }
             else
             {
                 Form4 fm = new Form4();
                 fm.Show();//显示输赢窗体
             }
         }
         if (num % 2 == 0)
         {
             label1.Text = "黑方落子";
         }
         else
         {
             label1.Text = "白方落子";
         }
         label1.Refresh();
         //更改提示语
         Console.Beep(1000, 140);
     }
 }
Exemplo n.º 25
0
        private void btnGoTODCT_Click(object sender, EventArgs e)
        {
            Form4 form4 = new Form4();

            form4.Show();
        }
Exemplo n.º 26
0
        private void button7_Click(object sender, EventArgs e)
        {
            Form4 f4 = new Form4();

            f4.Show(); this.Hide();
        }
Exemplo n.º 27
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Form4 frm4 = new Form4();

            frm4.ShowDialog();
        }
Exemplo n.º 28
0
        // Header Links
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            // DPPt Links

            if (dataGridView1.CurrentCellAddress.X == 2 && Convert.ToInt32(dataGridView1.CurrentCell.Value) < comboBox12.Items.Count)
            {
                comboBox12.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 4)
            {
                tabControl1.SelectedIndex = 1;
                comboBox1.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 5 || dataGridView1.CurrentCellAddress.X == 6)
            {
                tabControl1.SelectedIndex = 4;
                comboBox5.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 7)
            {
                tabControl1.SelectedIndex = 3;
                comboBox3.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 10 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043))
            {
                wildIndex = (int)Convert.ToUInt32(dataGridView1.CurrentCell.Value);
                Form9 wildEditor = new Form9();
                wildEditor.ShowDialog(this);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 11 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043))
            {
                tabControl1.SelectedIndex = 5;
                comboBox10.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentCell.Value);
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 12 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041 || gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043))
            {
                wildIndex = nameText.IndexOf(dataGridView1.CurrentCell.Value.ToString());
                Form4_2 nameEditor = new Form4_2();
                nameEditor.ShowDialog(this);
                dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex];
                return;
            }
            if (dataGridView1.CurrentCellAddress.X == 16 && (gameID == 0x45414441 || gameID == 0x45415041 || gameID == 0x53414441 || gameID == 0x53415041 || gameID == 0x46414441 || gameID == 0x46415041 || gameID == 0x49414441 || gameID == 0x49415041 || gameID == 0x44414441 || gameID == 0x44415041 || gameID == 0x4A414441 || gameID == 0x4A415041 || gameID == 0x4B414441 || gameID == 0x4B415041))
            {
                mapFlags = Convert.ToUInt16(dataGridView1.CurrentCell.Value);
                Form4 flagEditor = new Form4();
                flagEditor.ShowDialog(this);
                dataGridView1.CurrentCell.Value = mapFlags;
                return;
            }

            // Platinum Links

            if (dataGridView1.CurrentCellAddress.X == 17 && (gameID == 0x45555043 || gameID == 0x53555043 || gameID == 0x46555043 || gameID == 0x49555043 || gameID == 0x44555043 || gameID == 0x4A555043 || gameID == 0x4B555043))
            {
                mapFlags = Convert.ToUInt16(dataGridView1.CurrentCell.Value);
                Form4 flagEditor = new Form4();
                flagEditor.ShowDialog(this);
                dataGridView1.CurrentCell.Value = mapFlags;
                return;
            }

            // HGSS Links

            if (dataGridView13.CurrentCellAddress.X == 6)
            {
                tabControl1.SelectedIndex = 1;
                comboBox1.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value);
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 7 || dataGridView13.CurrentCellAddress.X == 8)
            {
                tabControl1.SelectedIndex = 4;
                comboBox5.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value);
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 9)
            {
                tabControl1.SelectedIndex = 3;
                comboBox3.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value);
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 12 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049))
            {
                tabControl1.SelectedIndex = 5;
                comboBox10.SelectedIndex = Convert.ToInt32(dataGridView13.CurrentCell.Value);
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 13 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049))
            {
                wildIndex = nameText.IndexOf(dataGridView13.CurrentCell.Value.ToString());
                Form4_2 nameEditor = new Form4_2();
                nameEditor.ShowDialog(this);
                dataGridView13.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex];
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 2 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049))
            {
                wildIndex = (int)Convert.ToUInt32(dataGridView13.CurrentCell.Value);
                Form9 wildEditor = new Form9();
                wildEditor.ShowDialog(this);
                return;
            }
            if (dataGridView13.CurrentCellAddress.X == 18 && (gameID == 0x454B5049 || gameID == 0x45475049 || gameID == 0x534B5049 || gameID == 0x53475049 || gameID == 0x464B5049 || gameID == 0x46475049 || gameID == 0x494B5049 || gameID == 0x49475049 || gameID == 0x444B5049 || gameID == 0x44475049 || gameID == 0x4A4B5049 || gameID == 0x4A475049 || gameID == 0x4B4B5049 || gameID == 0x4B475049))
            {
                mapFlags = Convert.ToUInt16(dataGridView13.CurrentCell.Value);
                Form4 flagEditor = new Form4();
                flagEditor.ShowDialog(this);
                dataGridView13.CurrentCell.Value = mapFlags;
                return;
            }
        }
Exemplo n.º 29
0
 private void openAboutMenu(object sender, EventArgs e)
 {
     Form4 about = new Form4();
     about.ShowDialog();
 }
Exemplo n.º 30
0
        // V Header Links
        private void dataGridView7_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView7.CurrentCellAddress.X == 4)
            {
                tabControl1.SelectedIndex = 1;
                comboBox6.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value);
                return;
            }
            if (dataGridView7.CurrentCellAddress.X == 5 || dataGridView7.CurrentCellAddress.X == 6)
            {
                tabControl1.SelectedIndex = 4;
                comboBox5.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value);
                return;
            }
            if (dataGridView7.CurrentCellAddress.X == 7)
            {
                tabControl1.SelectedIndex = 3;
                radioButton15.Checked = true;
                comboBox3.SelectedIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value);
                return;
            }

            if (dataGridView7.CurrentCellAddress.X == 16)
            {
                wildIndex = nameText.IndexOf(dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
                Form4_2 nameEditor = new Form4_2();
                nameEditor.ShowDialog(this);
                dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = nameText[wildIndex];
                return;
            }
            if (dataGridView7.CurrentCellAddress.X == 21)
            {
                mapFlags = Convert.ToInt32(dataGridView7.CurrentCell.Value);
                Form4 flagEditor = new Form4();
                flagEditor.ShowDialog(this);
                dataGridView7.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = mapFlags;
                return;
            }
            if (dataGridView7.CurrentCellAddress.X == 12)
            {
                wildIndex = Convert.ToInt32(dataGridView7.CurrentCell.Value);
                Form9 wildEditor = new Form9();
                wildEditor.ShowDialog(this);
            }
        }
Exemplo n.º 31
0
 private void button4_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     Form4 connectionMode = new Form4();
     connectionMode.Show();
 }
Exemplo n.º 32
0
 private void button1_Click(object sender, EventArgs e)//判断是否正确
 {
     if (num[1, 1] == "5")
     {
         if (num[1, 2] == "7")
         {
             if (num[1, 3] == "9")
             {
                 if (num[1, 4] == "1")
                 {
                     if (num[1, 5] == "2")
                     {
                         if (num[1, 6] == "8")
                         {
                             if (num[1, 7] == "6")
                             {
                                 if (num[1, 8] == "3")
                                 {
                                     if (num[1, 9] == "4")
                                     {
                                         if (num[2, 1] == "8")
                                         {
                                             if (num[2, 2] == "3")
                                             {
                                                 if (num[2, 3] == "2")
                                                 {
                                                     if (num[2, 4] == "5")
                                                     {
                                                         if (num[2, 5] == "4")
                                                         {
                                                             if (num[2, 6] == "6")
                                                             {
                                                                 if (num[2, 7] == "1")
                                                                 {
                                                                     if (num[2, 8] == "9")
                                                                     {
                                                                         if (num[2, 9] == "7")
                                                                         {
                                                                             if (num[3, 1] == "1")
                                                                             {
                                                                                 if (num[3, 2] == "4")
                                                                                 {
                                                                                     if (num[3, 3] == "6")
                                                                                     {
                                                                                         if (num[3, 4] == "7")
                                                                                         {
                                                                                             if (num[3, 5] == "9")
                                                                                             {
                                                                                                 if (num[3, 6] == "3")
                                                                                                 {
                                                                                                     if (num[3, 7] == "2")
                                                                                                     {
                                                                                                         if (num[3, 8] == "8")
                                                                                                         {
                                                                                                             if (num[3, 9] == "5")
                                                                                                             {
                                                                                                                 if (num[4, 1] == "3")
                                                                                                                 {
                                                                                                                     if (num[4, 2] == "5")
                                                                                                                     {
                                                                                                                         if (num[4, 3] == "4")
                                                                                                                         {
                                                                                                                             if (num[4, 4] == "2")
                                                                                                                             {
                                                                                                                                 if (num[4, 5] == "6")
                                                                                                                                 {
                                                                                                                                     if (num[4, 6] == "9")
                                                                                                                                     {
                                                                                                                                         if (num[4, 7] == "8")
                                                                                                                                         {
                                                                                                                                             if (num[4, 8] == "7")
                                                                                                                                             {
                                                                                                                                                 if (num[4, 9] == "1")
                                                                                                                                                 {
                                                                                                                                                     if (num[5, 1] == "9")
                                                                                                                                                     {
                                                                                                                                                         if (num[5, 2] == "2")
                                                                                                                                                         {
                                                                                                                                                             if (num[5, 3] == "8")
                                                                                                                                                             {
                                                                                                                                                                 if (num[5, 4] == "4")
                                                                                                                                                                 {
                                                                                                                                                                     if (num[5, 5] == "7")
                                                                                                                                                                     {
                                                                                                                                                                         if (num[5, 6] == "1")
                                                                                                                                                                         {
                                                                                                                                                                             if (num[5, 7] == "3")
                                                                                                                                                                             {
                                                                                                                                                                                 if (num[5, 8] == "5")
                                                                                                                                                                                 {
                                                                                                                                                                                     if (num[5, 9] == "6")
                                                                                                                                                                                     {
                                                                                                                                                                                         if (num[6, 1] == "6")
                                                                                                                                                                                         {
                                                                                                                                                                                             if (num[6, 2] == "1")
                                                                                                                                                                                             {
                                                                                                                                                                                                 if (num[6, 3] == "7")
                                                                                                                                                                                                 {
                                                                                                                                                                                                     if (num[6, 4] == "3")
                                                                                                                                                                                                     {
                                                                                                                                                                                                         if (num[6, 5] == "8")
                                                                                                                                                                                                         {
                                                                                                                                                                                                             if (num[6, 6] == "5")
                                                                                                                                                                                                             {
                                                                                                                                                                                                                 if (num[6, 7] == "9")
                                                                                                                                                                                                                 {
                                                                                                                                                                                                                     if (num[6, 8] == "4")
                                                                                                                                                                                                                     {
                                                                                                                                                                                                                         if (num[6, 9] == "2")
                                                                                                                                                                                                                         {
                                                                                                                                                                                                                             if (num[7, 1] == "7")
                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                 if (num[7, 2] == "8")
                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                     if (num[7, 3] == "5")
                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                         if (num[7, 4] == "6")
                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                             if (num[7, 5] == "3")
                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                 if (num[7, 6] == "2")
                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                     if (num[7, 7] == "4")
                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                         if (num[7, 8] == "1")
                                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                                             if (num[7, 9] == "9")
                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                 if (num[8, 1] == "4")
                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                     if (num[8, 2] == "6")
                                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                                         if (num[8, 3] == "3")
                                                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                                                             if (num[8, 4] == "9")
                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                 if (num[8, 5] == "1")
                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                     if (num[8, 6] == "7")
                                                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                                                         if (num[8, 7] == "5")
                                                                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                                                                             if (num[8, 8] == "2")
                                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                                 if (num[8, 9] == "8")
                                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                                     if (num[9, 1] == "2")
                                                                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                                                                         if (num[9, 2] == "9")
                                                                                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                                                                                             if (num[9, 3] == "1")
                                                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                                                 if (num[9, 4] == "8")
                                                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                                                     if (num[9, 5] == "5")
                                                                                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                                                                                         if (num[9, 6] == "4")
                                                                                                                                                                                                                                                                                                                         {
                                                                                                                                                                                                                                                                                                                             if (num[9, 7] == "7")
                                                                                                                                                                                                                                                                                                                             {
                                                                                                                                                                                                                                                                                                                                 if (num[9, 8] == "6")
                                                                                                                                                                                                                                                                                                                                 {
                                                                                                                                                                                                                                                                                                                                     if (num[9, 9] == "3")
                                                                                                                                                                                                                                                                                                                                     {
                                                                                                                                                                                                                                                                                                                                         ans = 1;
                                                                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                                             }
                                                                                                                                                                                                                                         }
                                                                                                                                                                                                                                     }
                                                                                                                                                                                                                                 }
                                                                                                                                                                                                                             }
                                                                                                                                                                                                                         }
                                                                                                                                                                                                                     }
                                                                                                                                                                                                                 }
                                                                                                                                                                                                             }
                                                                                                                                                                                                         }
                                                                                                                                                                                                     }
                                                                                                                                                                                                 }
                                                                                                                                                                                             }
                                                                                                                                                                                         }
                                                                                                                                                                                     }
                                                                                                                                                                                 }
                                                                                                                                                                             }
                                                                                                                                                                         }
                                                                                                                                                                     }
                                                                                                                                                                 }
                                                                                                                                                             }
                                                                                                                                                         }
                                                                                                                                                     }
                                                                                                                                                 }
                                                                                                                                             }
                                                                                                                                         }
                                                                                                                                     }
                                                                                                                                 }
                                                                                                                             }
                                                                                                                         }
                                                                                                                     }
                                                                                                                 }
                                                                                                             }
                                                                                                         }
                                                                                                     }
                                                                                                 }
                                                                                             }
                                                                                         }
                                                                                     }
                                                                                 }
                                                                             }
                                                                         }
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     if (ans == 1)
     {
         Form3 fm = new Form3();
         fm.Show();//显示输赢窗体
     }
     else
     {
         Form4 fm = new Form4();
         fm.Show();//显示输赢窗体
     }
 }
Exemplo n.º 33
0
 private void dEVELOPERSToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 form = new Form4();
     form.ShowDialog();
 }
Exemplo n.º 34
0
        private void button8_Click(object sender, EventArgs e)
        {
            Form4 form4 = new Form4();

            form4.Show();
        }
Exemplo n.º 35
0
 private void showForm4ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 objektForm4 = new Form4();
     objektForm4.Show();
 }
Exemplo n.º 36
0
        private void выводРезультатаовToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form4 c = new Form4();

            c.Show();
        }
Exemplo n.º 37
0
 private void button7_Click(object sender, EventArgs e)
 {
     Form4 f = new Form4();
     f.Show();
 }
Exemplo n.º 38
0
 private void helpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 form4 = new Form4();
     form4.ShowDialog();
 }