Exemple #1
0
        private void loginButton_Click(object sender, EventArgs e)
        {
            SqlDataAdapter adapter = new SqlDataAdapter("select count(*) from login where username ='******' and password='******'", connectionString);

            DataTable dataTable = new DataTable();

            adapter.Fill(dataTable);

            if (dataTable.Rows[0][0].ToString() == "1")
            {
                this.Hide();

                BasicForm basicform = new BasicForm();
                basicform.ShowDialog();
            }

            else
            {
                MessageBox.Show("Please Check Your Password and Try again", "Login Failed Message Box ", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Warning);

                userNameTextBox.Text = passwordTextBox.Text = "";
            }
        }
        private void mainToolStripMenuItem_Click(object sender, System.EventArgs e)
        {
            BasicForm form = new BasicForm();

            form.ShowDialog();
        }
Exemple #3
0
        private void button6_Click(object sender, System.EventArgs e)
        {
            BasicForm basic = new BasicForm();

            basic.ShowDialog();
        }
Exemple #4
0
        private void mainForm_Click(object sender, System.EventArgs e)
        {
            BasicForm Basic = new BasicForm();

            Basic.ShowDialog();
        }
Exemple #5
0
        private void mainButton_Click(object sender, EventArgs e)
        {
            BasicForm form1 = new BasicForm();

            form1.ShowDialog();
        }
Exemple #6
0
        private void button3_Click(object sender, System.EventArgs e)
        {
            BasicForm form = new BasicForm();

            form.ShowDialog();
        }
        private void mainButton_Click_1(object sender, EventArgs e)
        {
            BasicForm bs = new BasicForm();

            bs.ShowDialog();
        }