Esempio n. 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;
        }
Esempio n. 2
0
        public static void AutoClearClipboard()
        {
            FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

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

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

            fileEncryption.chkShowPassword.Checked = Globals.ShowPasswordByDefault;
        }