void CheckBox1CheckedChanged(object sender, EventArgs e) { bool rk = checkBox1.Checked; if (rk) { foreach (Control c in panel1.Controls) { c.Enabled = true; } textBox2.Enabled = false; textBox3.Enabled = false; textBox3.Text = textBox2.Text = ""; textBox4.Enabled = true; textBox4.Text = PowerAES.GenerateRandomString(1024); ValidateNextButton(); } else { textBox2.Enabled = true; textBox3.Enabled = true; foreach (Control c in panel1.Controls) { c.Enabled = false; } textBox4.Text = ""; checkBox1.Enabled = true; ValidateNextButton(); } }
void Button1Click(object sender, EventArgs e) { textBox4.Text = PowerAES.GenerateRandomString(1024); }
void Button2Click(object sender, EventArgs e) { textBox1.Text = PowerAES.GenerateRandomString(32); }