public AppKeyDialogViewModel() { var key = AppKeyHolder.Key; if (string.IsNullOrWhiteSpace(key)) { key = ValuesStorage.GetEncryptedString(AppKeyRevokedKey); KeyRevoked = key != null; } Value = key; }