Exemple #1
0
        private void btn_MainMenu_Click(object sender, EventArgs e)
        {
            this.Hide();
            MainAppForm appForm = new MainAppForm();

            appForm.ShowDialog();
        }
Exemple #2
0
 //SIGN IN
 private void btn_SignIn_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrWhiteSpace(txtBox_Password.Text) || string.IsNullOrWhiteSpace(txtBox_Login.Text))
     {
         MessageBox.Show("There are an empty field!!!");
     }
     else
     {
         DataBaseOperations db_operation = DataBaseOperations.getSample();
         CustomerInfo       customerInfo = db_operation.SelectUser(txtBox_Login.Text, txtBox_Password.Text);
         if (customerInfo != null)
         {
             MessageBox.Show(customerInfo.Customerid.ToString());
             db_operation.InsertLogger(0);
             this.Hide();
             MessageBox.Show("You have entered!!!");
             MessageBox.Show("" + customerInfo.Customeraddress);
             MainAppForm mainForm = new MainAppForm();
             mainForm.ShowDialog();
             mainForm = null;
             txtBox_Login.Clear();
             txtBox_Password.Clear();
         }
     }
 }