Exemple #1
0
 private void CYB_Click(object sender, EventArgs e)
 {
     try
     {
         if (TACB.SelectedItem.ToString() == "RGB")
         {
             if (ClipBoard.GetText() != CHTB.Text)
             {
                 ClipBoard.CopyText(CHTB.Text);
                 CHTB.Focus();
             }
         }
         else
         {
             if (ClipBoard.GetText() != CRTB.Text + ", " + CGTB.Text + ", " + CBTB.Text)
             {
                 ClipBoard.CopyText(CRTB.Text + ", " + CGTB.Text + ", " + CBTB.Text);
                 CGTB.Focus();
             }
         }
     }
     catch
     {
         //
     }
 }
Exemple #2
0
 private void CYB_Click(object sender, EventArgs e)
 {
     try
     {
         if (ClipBoard.GetText() != URTB.Text)
         {
             ClipBoard.CopyText(URTB.Text);
             URTB.Focus();
         }
     }
     catch
     {
         //
     }
 }
Exemple #3
0
 private void PEB_Click(object sender, EventArgs e)
 {
     try
     {
         if (ClipBoard.GetText() != CRTB.Text)
         {
             CRTB.Text = ClipBoard.GetText();
             CRTB.Focus();
         }
     }
     catch
     {
         //
     }
 }
Exemple #4
0
 private void COPY_Click(object sender, EventArgs e)
 {
     if (ClipBoard.GetText() != PASSWORD.Text)
     {
         ClipBoard.CopyText(PASSWORD.Text, true);
         if (PASSWORD.Text == ClipBoard.GetText())
         {
             Status.Message = PASSWORD.Text + " copied!";
         }
         else
         {
             Status.Message = PASSWORD.Text + " could not be copied!";
         }
     }
 }