Beispiel #1
0
 private static void ExitClearClipboard()
 {
     if (Globals.ExitClearClipboard == true)
     {
         EditClipboard.ClearClipboard();
     }
 }
Beispiel #2
0
 private void CopyPassword(string password)
 {
     EditClipboard.SetClipboard(password);
     EditClipboard.AutoClearClipboard();
     SetPasswordTextbox(password);
     this.Close();
 }
Beispiel #3
0
 private void TsmiCopyPassword_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtPassword.Text))
     {
         EditClipboard.SetClipboard(txtPassword.Text);
         EditClipboard.AutoClearClipboard();
     }
 }
Beispiel #4
0
        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();
 }
Beispiel #6
0
 private void TmrClearClipboard_Tick(object sender, EventArgs e)
 {
     EditClipboard.ClearClipboard();
     tmrClearClipboard.Stop();
 }