Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "s" && textBox2.Text == "1")
            {
                AdminSide a = new AdminSide();
                this.Hide();
                a.ShowDialog();
                this.Close();
            }
            else if (textBox1.Text != "s" && textBox2.Text == "1")
            {
                MessageBox.Show("Pls enter UserName Again.", "Wrong UserName!!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                textBox1.Text = "";
                //textBox2.Text = "";
            }

            else if (textBox1.Text == "s" && textBox2.Text != "1")
            {
                MessageBox.Show("Pls enter Password Again.", "Wrong Password!!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                //textBox1.Text = "";
                textBox2.Text = "";
            }
            else
            {
                MessageBox.Show("Pls enter UserName And Password Again.", "Error!!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                textBox1.Text = "";
                textBox2.Text = "";
            }
        }
Ejemplo n.º 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            AdminSide a = new AdminSide();

            this.Hide();
            a.ShowDialog();
            this.Close();
        }