From ecee91bc559e1c0d716a3032e371218812df61e7 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Fri, 24 Jun 2016 16:44:42 -0400 Subject: Loads of changes... Custom shifter options using Lua, and other stuff. --- source/WindowsFormsApplication1/Artpad.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/WindowsFormsApplication1/Artpad.cs') diff --git a/source/WindowsFormsApplication1/Artpad.cs b/source/WindowsFormsApplication1/Artpad.cs index 1ba144d..c393ae0 100644 --- a/source/WindowsFormsApplication1/Artpad.cs +++ b/source/WindowsFormsApplication1/Artpad.cs @@ -229,7 +229,7 @@ namespace ShiftOS canvasbitmap.SetPixel(Convert.ToInt32(txtpixelsetterxcoordinate.Text), Convert.ToInt32(txtpixelsetterycoordinate.Text), drawingcolour); picdrawingdisplay.Invalidate(); } - catch (Exception ex) + catch { API.CreateInfoboxSession("ArtPad - Placement Error!", "You have specified invalid coordinates for the pixel setter." + Environment.NewLine + Environment.NewLine + "Remember that the top left pixel has the coordinates 0, 0", infobox.InfoboxMode.Info); } @@ -344,7 +344,7 @@ namespace ShiftOS e.Graphics.DrawImage(canvasbitmap, 0, 0); e.Graphics.DrawImage(previewcanvasbitmap, 0, 0); } - catch (System.OutOfMemoryException ex) + catch { } @@ -1075,7 +1075,7 @@ namespace ShiftOS } } } - catch(Exception ex) + catch { } @@ -1295,7 +1295,7 @@ namespace ShiftOS graphicsbitmap = Graphics.FromImage(canvasbitmap); picdrawingdisplay.Invalidate(); } - catch (Exception ex) + catch { API.CreateInfoboxSession("ArtPad - Undo Error!" ,"There doesn't appear to be any more actions to undo." + Environment.NewLine + Environment.NewLine + "One more step back would undo the creation of the canvas. If this is your goal just click new.", infobox.InfoboxMode.Info); @@ -1312,7 +1312,7 @@ namespace ShiftOS graphicsbitmap = Graphics.FromImage(canvasbitmap); picdrawingdisplay.Invalidate(); } - catch (Exception ex) + catch { API.CreateInfoboxSession("ArtPad - Redo Error!" , "There doesn't appear to be any more actions to redo." + Environment.NewLine + Environment.NewLine + "If you have drawn on the canvas recently all future history would have been wiped!", infobox.InfoboxMode.Info); -- cgit v1.2.3