All pastes #261391 Raw Edit

Someone

public text v1 · immutable
#261391 ·published 2006-11-29 05:15 UTC
rendered paste body
Index: MainForm.cs
===================================================================
--- MainForm.cs (revision 68637)
+++ MainForm.cs (working copy)
@@ -294,18 +294,12 @@
                private void SubmitReportButton_Click (object sender, EventArgs e)
                {
                        SubmitReportButton.Enabled = false;
-
-                       string output_path = Path.Combine (Path.GetDirectoryName (Application.ExecutablePath), "Reports");
-                       StreamReader sr = new StreamReader (new FileStream (Path.Combine (output_path, "submit.txt"), FileMode.Open));
-
-                       string results = sr.ReadToEnd ();
-
-                       MoMAWebServices.MoMASubmit ws = new MoMA.MoMAWebServices.MoMASubmit ();
-
-                       if (ws.SubmitResults (results))
-                               MessageBox.Show ("Results successfully submitted.  Thanks!");
-                       else
-                               MessageBox.Show ("Result submission failed.  Please try again later.");
+            string output_path = Path.Combine (Path.GetDirectoryName (Application.ExecutablePath), "Reports");
+            string file = Path.Combine (output_path, "submit.txt");
+
+            OptionalInformation optional = new OptionalInformation (file);
+            optional.ShowDialog ();
+            Close ();
                }

                private void VerifyValidAssemblies ()