Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            //fill data
            Form7 obj = new Form7();

            this.Hide();
            obj.Show();
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();

            Form7 form = new Form7(Convert.ToString(comboBox1.SelectedIndex + 1), 0, zh, right, wrong);

            form.Show();
        }
Esempio n. 3
0
        private void button6_Click(object sender, EventArgs e)
        {
            this.Hide();

            Form7 f2 = new Form7();

            f2.Activate();
            f2.Show();
        }
Esempio n. 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form7 f2 = new Form7();

            f2.Closed += (s, args) => this.Show();

            f2.Show();
        }
Esempio n. 5
0
        private void webсайтуToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form7 f = new Form7();

            f.Icon      = this.Icon;
            f.BackColor = this.BackColor;
            f.Text      = "Web-сайт";
            f.Show();
            this.Close();
        }
Esempio n. 6
0
        private void timer9_Tick(object sender, EventArgs e)
        {
            pictureBox2.Left = pictureBox2.Left + 60;
            pictureBox4.Top  = pictureBox4.Top + 13;
            timer9.Stop();
            Form7 frm = new Form7();

            this.Hide();
            frm.Show();
        }
Esempio n. 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool valid = false;

            if (textBox1.Text != "")
            {
                valid = true;
            }
            if (textBox2.Text != "")
            {
            }
            else
            {
                valid = false;
            }
            if (textBox3.Text != "")
            {
            }
            else
            {
                valid = false;
            }

            if (textBox4.Text != "")
            {
            }
            else
            {
                valid = false;
            }
            if (textBox4.Text != "")
            {
            }
            else
            {
                valid = false;
            }
            if (valid == true)
            {
                Form7 novaform = new Form7();
                novaform.Show();
                novaform.label3.Text  = textBox1.Text;
                novaform.label4.Text  = textBox5.Text;
                novaform.label7.Text  = textBox2.Text;
                novaform.label9.Text  = textBox3.Text;
                novaform.label11.Text = textBox4.Text;
                novaform.label13.Text = label8.Text;
                this.Close();
            }
            else
            {
                MessageBox.Show("Jaulas não atualizadas, preencha todas as informações!");
            }
        }
Esempio n. 8
0
        private void режимыСПодсказкамиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИБзаставка1;
            Form7 f1 = new Form7();

            f1.Hide();
            f1.Show();
            f1.label2.Text       = "2";
            f1.Text              = "Режимы с подсказками";
            richTextBox1.Visible = false;
            richTextBox2.Visible = false;
        }
Esempio n. 9
0
        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Visible = false;
            FileStream   fs = new FileStream(@"E:\meetings.txt", FileMode.Append, FileAccess.Write, FileShare.Write);
            StreamWriter sw = new StreamWriter(fs);
            string       a, b, c, d, f;

            a = textBox1.Text;
            b = dateTimePicker1.Text;
            c = dateTimePicker2.Text;
            d = textBox2.Text;
            f = textBox3.Text;
            if (textBox1.Text.Length > 0 && dateTimePicker1.Text.Length > 0 && dateTimePicker2.Text.Length > 0 && textBox2.Text.Length > 0 && textBox3.Text.Length > 0)
            {
                sw.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}\t", a, b, c, d, f);
                sw.Close();
                MessageBox.Show("MEETING SAVED");
                textBox1.Text        = "";
                dateTimePicker1.Text = "";
                dateTimePicker2.Text = "";
                textBox2.Text        = "";
                textBox3.Text        = "";
                textBox1.Focus();
            }
            else
            {
                MessageBox.Show("All fields Must be filled");
                if (textBox1.Text.Length == 0)
                {
                    textBox1.Focus();
                }
                else if (dateTimePicker1.Text.Length == 0)
                {
                    dateTimePicker1.Focus();
                }
                else if (dateTimePicker2.Text.Length == 0)
                {
                    dateTimePicker2.Focus();
                }
                else if (textBox2.Text.Length == 0)
                {
                    textBox2.Focus();
                }
                else if (textBox3.Text.Length == 0)
                {
                    textBox3.Focus();
                }
            }
            Form7 obj = new Form7();

            obj.Show();
            this.Hide();
        }
        public void btnprint_Click(object sender, EventArgs e)
        {
            f7address = comboBox1.Text;
            f7barcode = txtbarcode.Text;
            f7sender  = txtsname.Text;
            f7weight  = txtweight.Text;
            f7price   = lbloutput.Text;

            Form7 f7 = new Form7();

            f7.Show();
        }
Esempio n. 11
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox4.Text == "")
            {
                MessageBox.Show(this.textBox1, "填空不可以为空");
                return;
            }
            string constr = ConfigurationManager.AppSettings["ConnectionString"];

            try
            {
                SqlConnection conn = new SqlConnection(constr);

                conn.Open();
                string         cmdStr = "select * from judge where 课程编号='" + id + "'";
                SqlDataAdapter da     = new SqlDataAdapter(cmdStr, conn);
                DataSet        ds     = new DataSet();
                da.Fill(ds);
                if (textBox4.Text.ToString() == ds.Tables[0].Rows[id1][4].ToString())
                {
                    MessageBox.Show("恭喜你回答正确!");
                    r++;
                }
                else
                {
                    MessageBox.Show(string.Format("很可惜回答错误,正确答案为{0}!", ds.Tables[0].Rows[id1][4].ToString()), "提示");
                    w++;
                }

                string     sql = "SELECT COUNT(*) FROM judge where 课程编号='" + id + "'";
                SqlCommand cmd = new SqlCommand(sql, conn);

                //   MessageBox.Show(string.Format("数据库里共有{0}条记录", cmd.ExecuteScalar()), "提示");
                if (id1 >= (Convert.ToInt16(cmd.ExecuteScalar()) - 1))
                {
                    this.Hide();
                    Form3 form1 = new Form3(zh);
                    form1.Show();
                }
                else
                {
                    this.Hide();
                    //  MessageBox.Show(comboBox1.ValueMember+1);
                    Form7 form = new Form7(id, id1 + 1, zh, r, w);
                    form.Show();
                }
            }
            catch (Exception error)
            {
                MessageBox.Show("" + error);
            }
        }
Esempio n. 12
0
        private void демонстрационныеРежимыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИБзаставка1;
            Form7 f1 = new Form7();

            f1.Hide();
            f1.Show();
            f1.label2.Text       = "1";
            f1.Text              = "Демонстрационные режимы";
            richTextBox1.Visible = false;
            richTextBox2.Visible = false;
            //richTextBox3.Visible = false;
        }
Esempio n. 13
0
        private void toolsMenu_Click(object sender, EventArgs e)
        {
            if (this.checkChildFrmExist("Form7") == true)
            {
                return;
            }
            Form fm7 = new Form7();

            fm7.MdiParent   = this;
            fm7.WindowState = FormWindowState.Maximized;
            //fm7.Dock = true;
            fm7.Show();
        }
Esempio n. 14
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (flag)
     {
         Form7 f7 = new Form7();
         this.Hide();
         f7.Show();
     }
     else
     {
         MessageBox.Show("Press Test First");
     }
 }
Esempio n. 15
0
 private void btnEditar_Click(object sender, EventArgs e)
 {
     if (table == 0)
     {
         Form6 formChild = new Form6(deledit);
         formChild.Show();
     }
     else
     {
         Form7 formChild = new Form7(deledit);
         formChild.Show();
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     //If there is no Form 7 instance
     if (f7 == null)
     {
         //Instantiate Form 7
         f7 = new Form7();
     }
     //Show the new Form 7 instance
     f7.Show();
     //Set Form 7's Form 3 variable as this instance
     f7.f3 = this;
     //Hide this form
     this.Hide();
 }
Esempio n. 17
0
        private void button1_Click(object sender, EventArgs e)
        {
            name1 = textBox1.Text;
            name2 = textBox2.Text;

            if (name1 == "" || name2 == "")
            {
                MessageBox.Show("You must enter your name !");
            }
            else
            {
                this.Hide();
                Form7 f7 = new Form7();
                f7.Show();
            }
        }
Esempio n. 18
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool l, k;

            localhost.Service1 s = new localhost.Service1();
            s.isadmin(txtname.Text, txtpassword.Text, out l, out k);
            if (l)
            {
                Form7 f = new Form7();
                f.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("enter  valid information");
            }
        }
Esempio n. 19
0
 private void button48_Click(object sender, EventArgs e)
 {
     //If there is no Form 7 instance
     if (this.f7 == null)
     {
         //Show Form 6
         f6.Show();
     }
     //If there is no Form 6 instance
     else if (this.f6 == null)
     {
         //Show Form 7
         f7.Show();
     }
     //Hide this form
     this.Hide();
 }
Esempio n. 20
0
        private void button3_Click(object sender, EventArgs e)
        {
            conn.oleDbConnection1.Open();
            OleDbCommand    cmd = new OleDbCommand("select VID from vendor", conn.oleDbConnection1);
            OleDbDataReader dr  = cmd.ExecuteReader();

            while (dr.Read())
            {
                comboBox1.Items.Add(dr["VID"].ToString());
            }
            conn.oleDbConnection1.Close();


            Form7 F7 = new Form7();

            F7.Show();
            this.Hide();
        }
Esempio n. 21
0
        private void обучающийРежимToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИБзаставка1;
            Form7 f1 = new Form7();

            f1.Hide();
            f1.Show();
            f1.label2.Text       = "3";
            f1.button4.Visible   = true;
            f1.textBox2.Visible  = true;
            f1.button1.Visible   = false;
            f1.button2.Visible   = false;
            f1.button3.Visible   = false;
            f1.pictureBox1.Image = global::WindowsFormsApplication1.Properties.Resources.ИБ_имя_ч_л_к_ч;
            f1.textBox2.Text     = "";
            f1.Text = "Обучающий режим";
            richTextBox1.Visible = false;
            richTextBox2.Visible = false;
        }
Esempio n. 22
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         MessageBox.Show("不正解");
         Form7 fome7 = new Form7();
         fome7.Show();
         this.Close();
     }
     if (radioButton2.Checked)
     {
         MessageBox.Show("不正解");
         Form7 fome7 = new Form7();
         fome7.Show();
         this.Close();
     }
     if (radioButton3.Checked)
     {
         MessageBox.Show("不正解");
         Form7 fome7 = new Form7();
         fome7.Show();
         this.Close();
     }
     if (radioButton4.Checked)
     {
         MessageBox.Show("不正解");
         Form7 fome7 = new Form7();
         fome7.Show();
         this.Close();
     }
     if (radioButton5.Checked)
     {
         MessageBox.Show("不正解");
         Form7 fome7 = new Form7();
         fome7.Show();
         this.Close();
     }
 }
Esempio n. 23
0
        private void label8_Click(object sender, EventArgs e)
        {
            Form7 f7 = new Form7();

            f7.Show();
        }
Esempio n. 24
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            Form7 f7 = new Form7();

            f7.Show();
        }
Esempio n. 25
0
 private void showForm7ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form7 objektForm7 = new Form7();
       objektForm7.Show();
 }
Esempio n. 26
0
        private void notaMesatareToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form7 form7 = new Form7();

            form7.Show();
        }
Esempio n. 27
0
        private void товарыИЗаказыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f7 = new Form7();

            f7.Show();
        }
Esempio n. 28
0
        private void 用户管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fm7 = new Form7();

            fm7.Show();
        }
Esempio n. 29
0
        private void button11_Click(object sender, EventArgs e)
        {
            Form7 f7 = new Form7();

            f7.Show();
        }
Esempio n. 30
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            Form7 yeni = new Form7();

            yeni.Show();
        }
Esempio n. 31
0
 private void listadoOrdenTrabajoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form7 form7 = new Form7();
     form7.MdiParent = this;
     form7.Show();
 }
Esempio n. 32
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     Form7 connectionMode = new Form7();
     connectionMode.Show();
 }
Esempio n. 33
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            Form7 newpizza = new Form7();

            newpizza.Show();
        }