Esempio n. 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
     {
         //
     }
 }
Esempio n. 2
0
 private void Button17_Click(object sender, EventArgs e)
 {
     if (button17.Cursor == Cursors.Hand)
     {
         button17.Cursor = Cursors.No;
         ClipBoard.CopyText(textBox13.Text, false);
     }
 }
Esempio n. 3
0
 private void CYB_Click(object sender, EventArgs e)
 {
     try
     {
         if (ClipBoard.GetText() != URTB.Text)
         {
             ClipBoard.CopyText(URTB.Text);
             URTB.Focus();
         }
     }
     catch
     {
         //
     }
 }
Esempio n. 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!";
         }
     }
 }
Esempio n. 5
0
 private void Button14_Click(object sender, EventArgs e)
 {
     try
     {
         if (button14.Cursor == Cursors.Hand)
         {
             button14.Cursor = Cursors.No;
             ClipBoard.CopyText(textBox12.Text, false);
         }
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }
Esempio n. 6
0
 private void CYB_Click(object sender, EventArgs e)
 {
     if (PWDTB.Text != Clipboard.GetText())
     {
         ClipBoard.CopyText(PWDTB.Text, true);
         if (PWDTB.Text == Clipboard.GetText())
         {
             Status.Message = "Generated password copied successfully!";
             PWDTB.Focus();
         }
         else
         {
             Status.Message = "Failed to copy the generated password!";
         }
     }
 }
Esempio n. 7
0
 private void Copy_B_Click(object sender, EventArgs e)
 {
     ClipBoard.CopyText(Password.Text, true);
     Password.Focus();
 }