public MonoAlphaSetupViewModel(IDecrypter decrypter, IObservableText encryptedText) { this.decrypter = decrypter; this.encryptedText = encryptedText; LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText); encryptedText.TextChanged += OnEncryptedTextChanged; }
public CaesarShiftSetupViewModel(ICaesarShiftDecrypter decrypter, IObservableText encryptedText) { this.decrypter = decrypter; this.encryptedText = encryptedText; ShiftUpCommand = new SimpleDelegateCommand(() => Shift++); ShiftDownCommand = new SimpleDelegateCommand(() => Shift--); LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText); }
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; }