コード例 #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
ファイル: frmSettings.cs プロジェクト: smalltsky/Kryptor
        private static void ApplyClearClipboardInterval()
        {
            FrmFileEncryption mainForm = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

            mainForm.tmrClearClipboard.Interval = Globals.ClearClipboardInterval;
        }
コード例 #4
0
ファイル: frmSettings.cs プロジェクト: smalltsky/Kryptor
        private static void ApplyShowPassword()
        {
            FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"];

            fileEncryption.chkShowPassword.Checked = Globals.ShowPasswordByDefault;
        }