Beispiel #1
0
        private void addPilotToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Resecpnist rt = new Resecpnist();

            rt.Show();
        }
Beispiel #2
0
        private void btn_submit_Click(object sender, EventArgs e)
        {
            string          dbconnect = Receptionist.dbconn();
            MySqlConnection con       = new MySqlConnection(dbconnect);

            con.Open();
            // if (con.State==ConnectionState.Open)
            //{
            // MessageBox.Show("Database Connected");
            //}
            //else
            //{
            // MessageBox.Show("Not Connected");
            //}
            if (textBox1usernameres.Text == "" || textBox1passwordres.Text == "")
            {
                MessageBox.Show("Please Enter Something User Name or Password is Empty", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (textBox1usernameres.Text != "res" || textBox1passwordres.Text != "res")
            {
                MessageBox.Show("Enter Valid User Name and Password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            this.Hide();
            Resecpnist rs = new Resecpnist();

            rs.Show();
            //  Customer_Front_end an = new Customer_Front_end();
            // an.Show();
            //   label1username.Text = textBox1username.Text;
            // label1password.Text = textBox2password.Text;
        }