Пример #1
0
 private void shiftNumericUpDown_ValueChanged(object sender, EventArgs e)
 {
     ExpandForm(NormalFormHeight);
     enAlphTextBox.Text = CaesarEncryptor.GetEncryptedAlph(alphTextBox.Text, (int)shiftNumericUpDown.Value);
 }
Пример #2
0
 private void alphComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     ExpandForm(NormalFormHeight);
     alphTextBox.Text   = alphComboBox.SelectedIndex == 0 ? AlphEng : AlphRus;
     enAlphTextBox.Text = CaesarEncryptor.GetEncryptedAlph(alphTextBox.Text, (int)shiftNumericUpDown.Value);
 }