public DecryptViewModel() { SetRegularExpressions(); IsIdle = true; Decrypter = RSA.RSAByteEncrypter.Encrypter; SelectFileCommand = new Commands.Decrypt.SelectFileCommand(s => EncryptedFilePath = s); SelectKeyCommand = new Commands.Decrypt.SelectFileCommand(s => KeyFilePath = s); CancelCommand = new Commands.Encrypt.CancelCommand(Cancel); DecryptCommand = new Commands.Decrypt.DecryptCommand(Decrypt, () => CanDecrypt); Reset(); }
public EncryptViewModel() { timeHelper = new Helper.ProgressTimeHelper(); ByteEncrypter = RSA.RSAByteEncrypter.Encrypter; IsIdle = true; SelectFolderCommand = new Commands.Encrypt.SelectFolderCommand(SetFolderPath); RefreshFolderCommand = new Commands.Encrypt.RefreshFolderListCommand(RefreshCurrentFolder); EncryptCommand = new Commands.Encrypt.EncryptCommand(Encrypt, () => IsIdle); CancelTaskCommand = new Commands.Encrypt.CancelCommand(Cancel); Reset(); }