Exemplo n.º 1
0
 private void submitButton_Click(object sender, EventArgs e)
 {
     if (current == null)
     {
         return;
     }
     Interactivity.SubmitCode(current.pnum);
 }
Exemplo n.º 2
0
 private void submitButton_Click(object sender, EventArgs e)
 {
     if (current == null)
     {
         MessageBox.Show("Select a problem first.");
         return;
     }
     Interactivity.SubmitCode(current.pnum);
 }
Exemplo n.º 3
0
 private void submitToolButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (CurrentFile == null || !LocalDatabase.HasProblem(SelectedPNUM))
         {
             return;
         }
         string code = File.ReadAllText(CurrentFile.FullName);
         Interactivity.SubmitCode(SelectedPNUM, code, CustomLang);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }