private static void ExitClearClipboard() { if (Globals.ExitClearClipboard == true) { EditClipboard.ClearClipboard(); } }
private void CopyPassword(string password) { EditClipboard.SetClipboard(password); EditClipboard.AutoClearClipboard(); SetPasswordTextbox(password); this.Close(); }
private void TsmiCopyPassword_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtPassword.Text)) { EditClipboard.SetClipboard(txtPassword.Text); EditClipboard.AutoClearClipboard(); } }
public static void CopyTextbox(object sender) { Control sourceControl = GetSourceControl(sender); if (sourceControl != null && !string.IsNullOrEmpty(sourceControl.Text)) { EditClipboard.SetClipboard(sourceControl.Text); EditClipboard.AutoClearClipboard(); } }
private void TsmiClearClipboard_Click(object sender, EventArgs e) { EditClipboard.ClearClipboard(); }
private void TmrClearClipboard_Tick(object sender, EventArgs e) { EditClipboard.ClearClipboard(); tmrClearClipboard.Stop(); }