Nice Exception Dialog

This commit is contained in:
2020-03-01 23:37:43 +01:00
parent aa24f80fe2
commit 8953ac1808
10 changed files with 273 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using EstusShots.Gtk.Controls;
using EstusShots.Gtk.Dialogs;
using EstusShots.Shared.Dto;
using EstusShots.Shared.Models.Parameters;
using Gtk;
@@ -55,6 +56,7 @@ namespace EstusShots.Gtk
if (!res.OperationResult.Success)
{
InfoLabel.Text = $"Error while creating Season: {res.OperationResult.ShortMessage}";
ErrorDialog.Show(res.OperationResult);
return;
}
@@ -88,6 +90,7 @@ namespace EstusShots.Gtk
if (!res.OperationResult.Success)
{
InfoLabel.Text = $"Refresh Failed: {res.OperationResult.ShortMessage}";
ErrorDialog.Show(res.OperationResult);
return;
}