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/AppscapeUploader.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source/WindowsFormsApplication1/AppscapeUploader.cs') diff --git a/source/WindowsFormsApplication1/AppscapeUploader.cs b/source/WindowsFormsApplication1/AppscapeUploader.cs index 3c2465c..5cc8560 100644 --- a/source/WindowsFormsApplication1/AppscapeUploader.cs +++ b/source/WindowsFormsApplication1/AppscapeUploader.cs @@ -31,8 +31,6 @@ namespace ShiftOS private AppscapeModder MyProfile = null; private AppscapeClient Repo = null; - private string result = "cancelled"; - private void btncancel_Click(object sender, EventArgs e) { this.Close(); @@ -52,7 +50,7 @@ namespace ShiftOS { pkg.Cost = Convert.ToDecimal(Convert.ToDecimal(txtprice.Text).ToString("#.#####")); } - catch(Exception ex) + catch { ContinueUpload = false; API.CreateInfoboxSession("Error", "You have entered an incorrect price value.", infobox.InfoboxMode.Info); @@ -112,7 +110,6 @@ namespace ShiftOS - result = "finished"; this.Close(); } } @@ -136,7 +133,7 @@ namespace ShiftOS RecursiveControlSetup(c); } } - catch(Exception ex) { + catch { } } @@ -325,7 +322,7 @@ namespace ShiftOS ZipFile.CreateFromDirectory(dir, API.GetFSResult()); API.CreateInfoboxSession("Success", "The SAA file has been created successfully.", infobox.InfoboxMode.Info); } - catch(Exception ex) + catch { API.CreateInfoboxSession("Error", "Could not create the SAA file.", infobox.InfoboxMode.Info); } -- cgit v1.2.3