Пример #1
0
 private void Encode_Click(object sender, EventArgs e)
 {
     if (!String.IsNullOrWhiteSpace(OG.Text))
     {
         NEW.Text = Base64C.Encode(OG.Text);
         AddToHistory(OG.Text);
     }
 }
Пример #2
0
 private void PEC_Click(object sender, EventArgs e)
 {
     //Paste, Encode, Copy
     if (!String.IsNullOrWhiteSpace(Clipboard.GetText()))
     {
         OG.Text  = Clipboard.GetText();
         NEW.Text = Base64C.Encode(Clipboard.GetText());
         Clipboard.SetText(NEW.Text);
         AddToHistory(NEW.Text);
     }
     else
     {
         SystemSounds.Hand.Play();
         MessageBox.Show("That is not some text!");
     }
 }