Exemplo n.º 1
0
        private void OnHideCharsCheckedChanged(object sender, EventArgs e)
        {
            bool bHide = m_cbHideChars.Checked;

            if (!bHide && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
            {
                m_cbHideChars.Checked = true;
                return;
            }

            m_secWord.EnableProtection(bHide);

            string strHiddenChar = new string(SecureEdit.PasswordChar, 1);

            bool bHideBtns = bHide;

            bHideBtns |= !Program.Config.UI.Hiding.UnhideButtonAlsoUnhidesSource;
            foreach (Button btn in m_lButtons)
            {
                if (bHideBtns)
                {
                    btn.Text = strHiddenChar;
                }
                else
                {
                    btn.Text = new string((char)btn.Tag, 1);
                }
            }
        }
Exemplo n.º 2
0
 private void mToggleHidden_CheckedChanged(object sender, EventArgs e)
 {
     if (!mToggleHidden.Checked && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
     {
         mToggleHidden.Checked = true;
         return;
     }
     mSecureEdit.EnableProtection(mToggleHidden.Checked);
 }
Exemplo n.º 3
0
        private void SetHidePassword(bool bHide, bool bUpdateCheckBox)
        {
            if (bUpdateCheckBox)
            {
                m_cbHidePassword.Checked = bHide;
            }

            m_secPassword.EnableProtection(bHide);
            m_secRepeat.EnableProtection(bHide);
        }
Exemplo n.º 4
0
        private void OnCheckedHidePassword(object sender, EventArgs e)
        {
            bool bHide = m_cbHidePassword.Checked;

            if (!bHide && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
            {
                m_cbHidePassword.Checked = true;
                return;
            }

            m_secPassword.EnableProtection(bHide);
        }
Exemplo n.º 5
0
        private void OnCheckedHidePassword(object sender, EventArgs e)
        {
            bool bHide = m_cbHidePassword.Checked;

            if (!bHide && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
            {
                m_cbHidePassword.Checked = true;
                return;
            }

            m_secPassword.EnableProtection(bHide);

            if (!m_bInitializing)
            {
                UIUtil.SetFocus(m_tbPassword, this);
            }
        }
Exemplo n.º 6
0
        private void OnCheckedHideKey(object sender, EventArgs e)
        {
            var hide = hideKeyCheckBox.Checked;

            if (!hide && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
            {
                hideKeyCheckBox.Checked = true;
                return;
            }

            secureEdit.EnableProtection(hide);

            if (!initializing)
            {
                UIUtil.SetFocus(keyTextBox, this);
            }
        }
Exemplo n.º 7
0
        private void OnHideCharsCheckedChanged(object sender, EventArgs e)
        {
            bool bHide = m_cbHideChars.Checked;

            m_secWord.EnableProtection(bHide);

            foreach (Button btn in m_lButtons)
            {
                if (bHide)
                {
                    btn.Text = string.Empty + m_chMaskChar;
                }
                else
                {
                    btn.Text = string.Empty + (char)btn.Tag;
                }
            }
        }
Exemplo n.º 8
0
        private void OnHideCharsCheckedChanged(object sender, EventArgs e)
        {
            bool bHide = m_cbHideChars.Checked;

            if (!bHide && !AppPolicy.Try(AppPolicyId.UnhidePasswords))
            {
                m_cbHideChars.Checked = true;
                return;
            }

            m_secWord.EnableProtection(bHide);
            foreach (Button btn in m_lButtons)
            {
                if (bHide)
                {
                    btn.Text = string.Empty + m_chMaskChar;
                }
                else
                {
                    btn.Text = string.Empty + (char)btn.Tag;
                }
            }
        }
Exemplo n.º 9
0
 private void OnCheckedHidePassword(object sender, EventArgs e)
 {
     m_secPassword.EnableProtection(m_cbHidePassword.Checked);
 }