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; }
public static void AutoClearClipboard() { FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"]; if (Globals.ClearClipboardInterval != 1) { fileEncryption.tmrClearClipboard.Start(); } }
private static void ApplyClearClipboardInterval() { FrmFileEncryption mainForm = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"]; mainForm.tmrClearClipboard.Interval = Globals.ClearClipboardInterval; }
private static void ApplyShowPassword() { FrmFileEncryption fileEncryption = (FrmFileEncryption)Application.OpenForms["frmFileEncryption"]; fileEncryption.chkShowPassword.Checked = Globals.ShowPasswordByDefault; }