/// <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); }
/// <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); }