private void dataToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAdminDashBoard admin = new FormAdminDashBoard();

            this.Hide();
            admin.Show();
        }
        private void btnLogin_Click(object sender, EventArgs e)
        {
            CommonClass.UserID = this.txtLoginID.Text;
            try
            {
                this.Sql = @"select *  from user_info
                      where userid = '" + this.txtLoginID.Text + "' and password = '******';";

                Dt = this.Da.ExecuteQueryTable(this.Sql);
                string a = Dt.Rows[0][6].ToString();



                if (a == "Admin" || a == "admin")
                {
                    MessageBox.Show("Login Sccessfull Admin");
                    FormAdminDashBoard admin = new FormAdminDashBoard();
                    this.Hide();
                    admin.Show();
                }
                else if (a == "User" || a == "user")
                {
                    MessageBox.Show("Login Sccessfull User");
                    FormUserDashBoard user = new FormUserDashBoard();
                    this.Hide();
                    user.Show();
                }
            }

            catch (Exception exc)
            {
                if (String.IsNullOrEmpty(this.txtLoginID.Text) || String.IsNullOrEmpty(this.txtPassword.Text))
                {
                    MessageBox.Show("Fill all the value");
                }
                else if (Dt.Rows.Count == 0)
                {
                    MessageBox.Show("Invalid Username or Password");
                }
            }
        }