Example #1
0
 private void butOK_Click(object sender, EventArgs e)
 {
     if (BugCur.Submitter == 0)
     {
         MessageBox.Show("A valid submitter wasn't picked.  Make sure the computer being used is associated to a buguser.");
         return;
     }
     if (!Bugs.VersionsAreValid(textVersionsFixed.Text))
     {
         MsgBox.Show("Please fix your version format. Must be like '18.4.8.0;19.1.22.0;19.2.3.0'");
         return;
     }
     if (textVersionsFixed.Text != "")
     {
         BugCur.Status_ = BugStatus.Fixed;
     }
     else if (comboStatus.SelectedIndex == 0)           //none
     {
         BugCur.Status_ = BugStatus.Accepted;
     }
     else
     {
         BugCur.Status_ = (BugStatus)Enum.Parse(typeof(BugStatus), comboStatus.Text);
     }
     SaveToDb();
     BugSubmissions.UpdateBugIds(BugCur.BugId, _listBugSubs);
     DialogResult = DialogResult.OK;
     Close();
 }