コード例 #1
0
        private void encrypt_button_Click(object sender, EventArgs e)
        {
            out_richTextBox.Clear();

            language text = new language();

            text.txt = in_richTextBox.Text;

            out_richTextBox.Clear();

            string variant = comboBox1.Text;

            if (comboBox1.Text == "Свой")
            {
                variant = textBox1.Text;
            }

            if (radioButton1.Checked == true)
            {
                out_richTextBox.Text = text.crypt(Int32.Parse(textBox_a.Text), Int32.Parse(textBox_b.Text), 0, 0, text.txt, variant, false);
            }
            else
            {
                out_richTextBox.Text = text.crypt(Int32.Parse(textBox_a.Text), Int32.Parse(textBox_b.Text),
                                                  Int32.Parse(textBox_a2.Text), Int32.Parse(textBox_b2.Text), text.txt, variant, true);
            }
        }