Editor IO exception handling (#1491)

* Close input stream
Show MessageBox with exception message
Remove unused arguments
Guard all of the Editor input/output code parts and show MessageBox
with appropriate message and issue reporting link

* Extract showing messageBox into method
This commit is contained in:
stefansjfw
2020-03-09 10:41:06 +01:00
committed by GitHub
parent 52e08a2784
commit 5581e25a21
6 changed files with 274 additions and 232 deletions

View File

@@ -150,11 +150,11 @@ namespace FancyZonesEditor
{
if (model is GridLayoutModel)
{
model.Apply(mainEditor.GetZoneRects());
model.Apply();
}
else
{
model.Apply((model as CanvasLayoutModel).Zones.ToArray());
model.Apply();
}
Close();