Esempio n. 1
0
        private void guestBtn_Click(object sender, EventArgs e)
        {
            DataBaseForm dbsf = new DataBaseForm("Guest");

            this.Hide();
            dbsf.ShowDialog();
            this.Show();
        }
Esempio n. 2
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     if (usernameTextBox.Text == "Admin" && passwordTextBox.Text == "1234")
     {
         DataBaseForm dbsf = new DataBaseForm("Admin");
         this.Hide();
         dbsf.ShowDialog();
         this.Show();
     }
     else
     {
         MessageBox.Show("Invalid Username/PassWord", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }