private void GenerateResponse() { string request = textBox2.Text; string edition = comboBox1.Text; int userCount = (int)numericUpDown1.Value; if (request != null && edition != null && userCount != 0) { try { textBox3.Text = Keygen1.GenerateResponse(request, edition, userCount); } catch { textBox3.Text = ""; } } }
private void button1_Click(object sender, EventArgs e) { textBox1.Text = Keygen1.GenerateSerial(); }
public Form1() { InitializeComponent(); comboBox1.SelectedIndex = 0; textBox1.Text = Keygen1.GenerateSerial(); }