// Рисшифровать
        private void button3_Click(object sender, EventArgs e)
        {
            if ((textBox1.Text == "") || (textBox2.Text == "") || (textBox3.Text == ""))
            {
                MessageBox.Show("Введите ключ(и)!");
            }
            else if ((textBox1.Text != "") && (textBox2.Text != "") && (textBox3.Text != ""))
            {
                KeyCollection.n  = Convert.ToInt32(textBox1.Text);
                KeyCollection.d  = Convert.ToInt32(textBox2.Text);
                KeyCollection.ee = Convert.ToInt32(textBox3.Text);
            }
            else
            {
                MessageBox.Show("Введите ключ(и)!");
            }

            richTextBox1.Text = EncriptAndDecript.Decript(richTextBox2.Text);
        }
 // Шифрование
 private void button2_Click(object sender, EventArgs e)
 {
     richTextBox2.Text = EncriptAndDecript.Encript(richTextBox1.Text);
 }