Esempio n. 1
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            logIn_Form logIn_Obj = new logIn_Form();

            logIn_Obj.Show();
        }
Esempio n. 2
0
 private void logOutBtn_Click(object sender, EventArgs e)
 {
     if (MetroFramework.MetroMessageBox.Show(this, "Are you sure you want to log-out?", "e-Ventory", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.Yes)
     {
         insertStatements.insertSystemLog(DBConnection.connect(), "Log-out", dataLib.loggedAdminName(DBConnection.connect(), dataLib.getLoggedAdminID(DBConnection.connect())), dataLib.currentDateAndTime());
         deleteStatement.deleteAllLoggedAdmin(DBConnection.connect());
         this.Hide();
         logIn_Form logIn_Obj = new logIn_Form();
         logIn_Obj.Show();
     }
 }