Exemple #1
0
 private void FormBugEdit_Load(object sender, EventArgs e)
 {
     if (BugCur == null)
     {
         MsgBox.Show(this, "An invalid bug was attempted to be loaded.");
         DialogResult = DialogResult.Abort;
         Close();
         return;
     }
     textBugId.Text         = BugCur.BugId.ToString();
     textCreationDate.Text  = BugCur.CreationDate.ToString();
     comboStatus.Text       = BugCur.Status_.ToString();
     comboPriority.Text     = BugCur.PriorityLevel.ToString();
     textVersionsFound.Text = BugCur.VersionsFound;
     textVersionsFixed.Text = BugCur.VersionsFixed;
     textDescription.Text   = BugCur.Description;
     textLongDesc.Text      = BugCur.LongDesc;
     textPrivateDesc.Text   = BugCur.PrivateDesc;
     textDiscussion.Text    = BugCur.Discussion;
     textSubmitter.Text     = Bugs.GetSubmitterName(BugCur.Submitter);
     if (!IsNew)
     {
         _listBugSubs.AddRange(BugSubmissions.GetForBugId(BugCur.BugId));
     }
     FillGrid();
 }
Exemple #2
0
 private void FormBugEdit_Load(object sender, EventArgs e)
 {
     textBugId.Text         = BugCur.BugId.ToString();
     textCreationDate.Text  = BugCur.CreationDate.ToString();
     comboStatus.Text       = BugCur.Status_.ToString();
     comboPriority.Text     = BugCur.PriorityLevel.ToString();
     textVersionsFound.Text = BugCur.VersionsFound;
     textVersionsFixed.Text = BugCur.VersionsFixed;
     textDescription.Text   = BugCur.Description;
     textLongDesc.Text      = BugCur.LongDesc;
     textPrivateDesc.Text   = BugCur.PrivateDesc;
     textDiscussion.Text    = BugCur.Discussion;
     textSubmitter.Text     = Bugs.GetSubmitterName(BugCur.Submitter);
     if (!IsNew)
     {
         _listBugSubs.AddRange(BugSubmissions.GetForBugId(BugCur.BugId));
     }
     FillGrid();
 }