remove old error / warning api
MODIFY
WalletWasabi.Gui/ViewModels/WasabiDocumentTabViewModel.cs
WalletWasabi.Gui/ViewModels/WasabiDocumentTabViewModel.cs
@@ -16,8 +16,6 @@ namespace WalletWasabi.Gui.ViewModels
private string _title;
private bool _isSelected;
private bool _isClosed;
- private string _warningMessage;
- private string _successMessage;
private object _dialogResult;
protected WasabiDocumentTabViewModel(Global global, string title)
@@ -52,18 +50,6 @@ namespace WalletWasabi.Gui.ViewModels
set => this.RaiseAndSetIfChanged(ref _isClosed, value);
}
- public string WarningMessage
- {
- get => _warningMessage;
- set => this.RaiseAndSetIfChanged(ref _warningMessage, value);
- }
-
- public string SuccessMessage
- {
- get => _successMessage;
- set => this.RaiseAndSetIfChanged(ref _successMessage, value);
- }
-
public object DialogResult
{
get => _dialogResult;
@@ -122,45 +108,5 @@ namespace WalletWasabi.Gui.ViewModels
}
return DialogResult;
}
-
- protected void SetWarningMessage(string message)
- {
- SuccessMessage = "";
- WarningMessage = message;
-
- if (string.IsNullOrWhiteSpace(message))
- {
- return;
- }
-
- Dispatcher.UIThread.PostLogException(async () =>
- {
- await Task.Delay(7000);
- if (WarningMessage == message)
- {
- WarningMessage = "";
- }
- });
- }
-
- public void SetSuccessMessage(string message)
- {
- SuccessMessage = message;
- WarningMessage = "";
-
- if (string.IsNullOrWhiteSpace(message))
- {
- return;
- }
-
- Dispatcher.UIThread.PostLogException(async () =>
- {
- await Task.Delay(7000);
- if (SuccessMessage == message)
- {
- SuccessMessage = "";
- }
- });
- }
}
}

remove old error / warning api