예제 #1
0
        private void bunifuFlatButton2_Click(object sender, EventArgs e)
        {
            this.Hide();
            FirstDashBoard fd = new FirstDashBoard();

            fd.ShowDialog();
        }
예제 #2
0
        private void Btncancel_Click(object sender, EventArgs e)
        {
            this.Hide();
            FirstDashBoard fd = new FirstDashBoard();

            fd.ShowDialog();
        }
예제 #3
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) from AppLogin where UserName = '******' and UserPassword = '******'", conn);
            DataTable      dt  = new DataTable();

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

            //sqlcmd.CommandType = CommandType.StoredProcedure;

            //sqlcmd.Parameters.AddWithValue("@USERNAME", txtusername.Text);
            //sqlcmd.Parameters.AddWithValue("@PASSWORD", underline.Text);
            ////sqlcmd.Parameters.Add("@status", SqlDbType.VarChar, 200);
            ////sqlcmd.Parameters["@status"].Direction = ParameterDirection.Output;

            //conn.Open();

            //var res = sqlcmd.ExecuteNonQuery();
            ////String status = sqlcmd.Parameters["@status"].Value.ToString();


            //    this.Hide();
            //    FirstDashBoard f = new FirstDashBoard();
            //    f.ShowDialog();

            //conn.Close();
        }