aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Artpad.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-06-24 16:44:42 -0400
committerMichaelTheShifter <[email protected]>2016-06-24 16:44:51 -0400
commitecee91bc559e1c0d716a3032e371218812df61e7 (patch)
tree49acdb538b13bc3da89185413bc4096d4e6d81f7 /source/WindowsFormsApplication1/Artpad.cs
parent8ea0903788b02b352cc25c9b6f46d439bdb1356a (diff)
downloadshiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.tar.gz
shiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.tar.bz2
shiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.zip
Loads of changes...
Custom shifter options using Lua, and other stuff.
Diffstat (limited to 'source/WindowsFormsApplication1/Artpad.cs')
-rw-r--r--source/WindowsFormsApplication1/Artpad.cs10
1 files changed, 5 insertions, 5 deletions
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);