Gradient editor - WIP commit

This commit is contained in:
Robert committed 2020-03-10 17:29:53 +01:00
1 parent 38b6ca32a3
commit 98294956b1
10 files changed
+217 -68

No files matched your search

@@ -95,7 +95,14 @@ namespace Artemis.UI.Shared.Services.Dialog
new ConstructorArgument("message", message),
new ConstructorArgument("exception", exception)
};
await Execute.OnUIThreadAsync(async () => await ShowDialog<ExceptionDialogViewModel>(arguments));
try
{
await Execute.OnUIThreadAsync(async () => await ShowDialog<ExceptionDialogViewModel>(arguments));
}
catch (Exception)
{
//ignored
}
}
private async Task<object> ShowDialog(string identifier, DialogViewModelBase viewModel)
@@ -105,7 +112,7 @@ namespace Artemis.UI.Shared.Services.Dialog
{
var view = _viewManager.CreateViewForModel(viewModel);
_viewManager.BindViewToModel(view, viewModel);
if (identifier == null)
result = DialogHost.Show(view, viewModel.OnDialogOpened, viewModel.OnDialogClosed);
else