private void button1_Click_1(object sender, EventArgs e) { if (!PrivilegesManager.IsTempActive) { login logingWin = new login(); logingWin.ShowDialog(); } else { MessageBox.Show("You are temp already"); } if (PrivilegesManager.IsTempActive) { //LogotTemp.Visible = true; } }
private void tempLoginToolStripMenuItem_Click(object sender, EventArgs e) { if (!PrivilegesManager.IsTempActive) { login logingWin = new login(); logingWin.ShowDialog(); } else { MessageBox.Show("You are temp already"); } if (PrivilegesManager.IsTempActive) { UserLoggedTxt.Text = SharedVariables.user_logged_name + ": " + SharedVariables.user_logged_name_name; // LogotTemp.Visible = true; logoutTempToolStripMenuItem.Visible = true; } }
private void TempLoginRibnBtn_Click(object sender, EventArgs e) { if (!PrivilegesManager.IsTempActive) { login logingWin = new login(); logingWin.ShowDialog(); } else { MessageBox.Show(MsgTxt.AlreadyTempUserTxt, MsgTxt.WarningCaption, MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } if (PrivilegesManager.IsTempActive) { LoggedUsrTxtLbl.Text = SharedVariables.temp_logged_name + ": " + SharedVariables.temp_logged_name_name; // LogotTemp.Visible = true; TempLogoutRibnBtn.Visible = true; } else { TempLogoutRibnBtn.Visible = false; } }