private void backBtn_Click(object sender, EventArgs e) { this.Hide(); logIn_Form logIn_Obj = new logIn_Form(); logIn_Obj.Show(); }
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(); } }