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

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

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

            fileEncryption.chkShowPassword.Checked = Globals.ShowPasswordByDefault;
        }