예제 #1
0
 private void Button_Click_Shifr(object sender, RoutedEventArgs e)
 {
     if (!String.IsNullOrEmpty(TextForShifr.Text) && !String.IsNullOrEmpty(Key.Text))
     {
         var result = VigenereCipher.VCode(TextForShifr.Text, Key.Text);
         TextShifr.Visibility = Visibility.Visible;
         OnSave.Visibility    = Visibility.Visible;
         TextShifr.Text       = result;
     }
     else
     {
         MessageBox.Show("Даже поля заполнить не можешь?");
     }
 }
예제 #2
0
        private void Button_Click_Read(object sender, RoutedEventArgs e)
        {
            var result = VigenereCipher.VCode(WorkWithFile.ReadFile(), "скорпион", false);

            TextDeshifr.Text = result;
        }