Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Main_Menu pm = new Main_Menu();

            this.Hide();
            pm.Show();
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["House_of_hyderabadConnectionString"].ConnectionString);
         con.Open();
         SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) From Admin_login where username='******'and password='******'", con);
         DataTable      dt  = new DataTable();
         sda.Fill(dt);
         if (dt.Rows[0][0].ToString() == "1")
         {
             this.Hide();
             Main_Menu frm = new Main_Menu();
             frm.Show();
         }
         else
         {
             MessageBox.Show("Please check user loginid and password");
         }
     }
     catch (Exception error)
     {
         MessageBox.Show(error.ToString());
     }
 }
Esempio n. 3
0
        private void button3_Click(object sender, EventArgs e) //back
        {
            Main_Menu mm = new Main_Menu();

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

                SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["House_of_hyderabadConnectionString"].ConnectionString);
                con.Open();
                SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) From Admin_login where username='******'and password='******'", con);
                DataTable dt = new DataTable();
                sda.Fill(dt);
                if (dt.Rows[0][0].ToString() == "1")
                {
                    this.Hide();
                    Main_Menu frm = new Main_Menu();
                    frm.Show();
                }
                else
                {
                    MessageBox.Show("Please check user loginid and password");

                }
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());

            }
        }
Esempio n. 5
0
 private void button3_Click(object sender, EventArgs e)
 {
     Main_Menu mm = new Main_Menu();
     this.Hide();
     mm.Show();
 }