예제 #1
0
        /// <summary>
        /// Opens a create new password dialog
        /// </summary>
        /// <returns></returns>
        public CompositeKey GetNewDualPassword()
        {
            CompositeKey newPwd = null;
            PasswordFrm  f      = new PasswordFrm(true);

            f.AlgoLabel = GetAlgoLabel();
            DialogResult dr = f.ShowDialog();

            if (dr == DialogResult.OK)
            {
                newPwd         = f.Password;
                m_DualPassword = newPwd;
            }

            UIUtil.DestroyForm(f);

            return(newPwd);
        }
예제 #2
0
        public CompositeKey GetDualPassword()
        {
            PasswordFrm f = new PasswordFrm(false);

            f.AlgoLabel = GetAlgoLabel();
            DialogResult dr = f.ShowDialog();

            if (dr == DialogResult.OK && f.Password != null)
            {
                m_DualPassword = f.Password;
            }
            else
            {
                m_DualPassword = null;
            }

            UIUtil.DestroyForm(f);

            return(m_DualPassword);
        }