Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 void Button1Click(object sender, EventArgs e)
 {
     textBox4.Text = PowerAES.GenerateRandomString(1024);
 }
Exemplo n.º 3
0
 void Button2Click(object sender, EventArgs e)
 {
     textBox1.Text = PowerAES.GenerateRandomString(32);
 }