private void LogotTemp_Click(object sender, EventArgs e) { if (PrivilegesManager.IsTempActive) { PrivilegesManager.IsTempActive = false; //LogotTemp.Visible = false; PrivilegesManager.ClearTempTemplate(); } }
private void logoutTempToolStripMenuItem_Click(object sender, EventArgs e) { if (PrivilegesManager.IsTempActive) { PrivilegesManager.IsTempActive = false; logoutTempToolStripMenuItem.Visible = false; PrivilegesManager.ClearTempTemplate(); UserLoggedTxt.Text = SharedVariables.user_logged_name + ": " + SharedVariables.user_logged_name_name; } }
private void TempLogoutRibnBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.IsTempActive) { PrivilegesManager.IsTempActive = false; TempLogoutRibnBtn.Visible = false; PrivilegesManager.ClearTempTemplate(); LoggedUsrTxtLbl.Text = SharedVariables.user_logged_name + ": " + SharedVariables.user_logged_name_name; } }