示例#1
0
        private static void SetPasswordTextbox(string password)
        {
            FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];
            TextBox           txtPassword    = (TextBox)fileEncryption.Controls["txtPassword"];

            txtPassword.Text           = password;
            txtPassword.SelectionStart = txtPassword.Text.Length;
        }
示例#2
0
        public static void AutoClearClipboard()
        {
            FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

            if (Globals.ClearClipboardInterval != 1)
            {
                fileEncryption.tmrClearClipboard.Start();
            }
        }
示例#3
0
        private static void ApplyClearClipboardInterval()
        {
            FrmFileEncryption mainForm = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

            mainForm.tmrClearClipboard.Interval = Globals.ClearClipboardInterval;
        }
示例#4
0
        private static void ApplyShowPassword()
        {
            FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

            fileEncryption.chkShowPassword.Checked = Globals.ShowPasswordByDefault;
        }