private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "") { MessageBox.Show("Enter a key first."); return; } if (btnGoMulti.Visible) { Result = StringInterpreter.Interpret(textBox1.Text); if (Result == null) { MessageBox.Show("Unrecognized or invalid string"); } else { this.Close(); } } else { Result = StringInterpreter.InterpretBatch(textBox1.Text); if (Result == null) { MessageBox.Show("Unrecognized or invalid string"); } else { this.Close(); } } }
private List <Bip38Intermediate> ScanClipboardForIntermediateCodes() { string cliptext = Clipboard.GetText(TextDataFormat.UnicodeText); List <object> objects = StringInterpreter.InterpretBatch(cliptext); List <Bip38Intermediate> intermediates = new List <Bip38Intermediate>(from c in objects where c is Bip38Intermediate select c as Bip38Intermediate); return(intermediates); }