Exemple #1
0
 private void CopyPassword(string password)
 {
     EditClipboard.SetClipboard(password);
     EditClipboard.AutoClearClipboard();
     SetPasswordTextbox(password);
     this.Close();
 }
Exemple #2
0
 private void TsmiCopyPassword_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtPassword.Text))
     {
         EditClipboard.SetClipboard(txtPassword.Text);
         EditClipboard.AutoClearClipboard();
     }
 }
Exemple #3
0
        public static void CopyTextbox(object sender)
        {
            Control sourceControl = GetSourceControl(sender);

            if (sourceControl != null && !string.IsNullOrEmpty(sourceControl.Text))
            {
                EditClipboard.SetClipboard(sourceControl.Text);
                EditClipboard.AutoClearClipboard();
            }
        }