コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
ファイル: Main2.cs プロジェクト: SariSultan/RMS
        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;
            }
        }