コード例 #1
0
 public MonoAlphaSetupViewModel(IDecrypter decrypter, IObservableText encryptedText)
 {
     this.decrypter = decrypter;
     this.encryptedText = encryptedText;
     LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText);
     encryptedText.TextChanged += OnEncryptedTextChanged;
 }
コード例 #2
0
 public CaesarShiftSetupViewModel(ICaesarShiftDecrypter decrypter, IObservableText encryptedText)
 {
     this.decrypter = decrypter;
     this.encryptedText = encryptedText;
     ShiftUpCommand = new SimpleDelegateCommand(() => Shift++);
     ShiftDownCommand = new SimpleDelegateCommand(() => Shift--);
     LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText);
 }
コード例 #3
0
 public XORSetupViewModel(IXORDecrypter decrypter, IObservableText encryptedText)
 {
     this.decrypter = decrypter;
     this.encryptedText = encryptedText;
     FindKeyCommand = new SimpleDelegateCommand(FindKey);
     LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText);
     decrypter.KeyChanged += HandleKeyChanged;
     KeyAutoSearchLowerBound = 97;
     KeyAutoSearchUpperBound = 122;
     WordsToFind = string.Empty;
 }