rendered paste bodyIndex: 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 ()