Esempio n. 1
0
 /// <summary>
 /// Show Submit problem dialog.
 /// </summary>
 /// <param name="pnum">Problem Number</param>
 /// <param name="code">Problem's Code to submit</param>
 /// <param name="lang">Language the code is written on</param>
 public static void SubmitCode(long pnum, string code = null, Language lang = Language.CPP)
 {
     if (submitForm == null || submitForm.IsDisposed)
     {
         submitForm = new SubmitForm();
     }
     submitForm.Show();
     submitForm.LoadSubmit(pnum, code, lang);
 }
Esempio n. 2
0
 /// <summary>
 /// Show Submit problem dialog.
 /// </summary>
 /// <param name="pnum">Problem Number</param>
 /// <param name="code">Problem's Code to submit</param>
 /// <param name="lang">Language the code is written on</param>
 public static void SubmitCode(long pnum, string code = null, Language lang = Language.CPP)
 {
     if (submitForm == null || submitForm.IsDisposed)
         submitForm = new SubmitForm();
     submitForm.Show();
     submitForm.LoadSubmit(pnum, code, lang);
 }