Ejemplo n.º 1
0
        private void btnexit_Click(object sender, EventArgs e)
        {
            this.Hide();
            SecondDashBoard sd = new SecondDashBoard();

            sd.ShowDialog();
        }
Ejemplo n.º 2
0
        private void bunifuFlatButton2_Click(object sender, EventArgs e)
        {
            this.Hide();
            SecondDashBoard sd = new SecondDashBoard();

            sd.ShowDialog();
        }
Ejemplo n.º 3
0
        private void btnlogin_Click(object sender, EventArgs e)
        {
            SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) from Table_Admin_LogIn where User_Name = '" + txtusername.Text + "' and Password = '******'", conn);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                this.Hide();
                SecondDashBoard fd = new SecondDashBoard();
                fd.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please Enter the Valid UserName and Password", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }