예제 #1
0
        private void button21_Click(object sender, EventArgs e)
        {
            textBox3.Text = comboBox1.Text;
            textBox4.Text = textBox6.Text;

            /*
             * do
             *  {
             *      //listBox3.Items.Add(listBox1.Text);
             *  }
             *  while (listBox1.SelectedIndex > 0);
             *  do
             *  {
             *     // listBox4.Items.Add(listBox2.Text);
             *  }
             *  while (listBox2.SelectedIndex > 0);
             *
             *  do
             *  {
             *      //listBox6.Items.Add(listBox5.Text);
             *  }
             *  while (listBox5.SelectedIndex > 0);  */

            new1 tb = new new1();

            tb.button1.BackColor  = Color.Green;
            tb.button2.BackColor  = Color.Green;
            tb.button3.BackColor  = Color.Green;
            tb.button4.BackColor  = Color.Green;
            tb.button5.BackColor  = Color.Green;
            tb.button6.BackColor  = Color.Green;
            tb.button7.BackColor  = Color.Green;
            tb.button8.BackColor  = Color.Green;
            tb.button9.BackColor  = Color.Green;
            tb.button10.BackColor = Color.Green;
            tb.button11.BackColor = Color.Green;
            tb.button12.BackColor = Color.Green;
            tb.button13.BackColor = Color.Green;
            tb.button14.BackColor = Color.Green;
            tb.button15.BackColor = Color.Green;
            tb.button16.BackColor = Color.Green;
            tb.button17.BackColor = Color.Green;
            tb.button18.BackColor = Color.Green;
            tb.button19.BackColor = Color.Green;
            tb.button20.BackColor = Color.Green;
            tb.button21.BackColor = Color.Green;
            tb.button22.BackColor = Color.Green;
            tb.button23.BackColor = Color.Green;
            tb.button24.BackColor = Color.Green;
            tb.button25.BackColor = Color.Green;
            tb.button26.BackColor = Color.Green;
            tb.button27.BackColor = Color.Green;
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            new1 f2 = new new1();

            if (textBox1.Text == "Sneha Chavan" && textBox2.Text == "snehachavan" ||
                textBox1.Text == "Anushree Ghag" && textBox2.Text == "anushreeghag" ||
                //textBox1.Text == "Tushar Bhadarka" && textBox2.Text == "tusharbhadarka" ||
                //textBox1.Text == "Avinash Monde" && textBox2.Text == "avinashmonde" ||
                textBox1.Text == "Tejal Dalvi" && textBox2.Text == "tejaldalvi" ||
                textBox1.Text == "" && textBox2.Text == "")

            {
                f2.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("You are not our member");
                textBox1.Text = "";
                textBox2.Text = "";
            }
        }