Ejemplo n.º 1
0
 private void SaveToDb()
 {
     //BugId
     //CreationDate
     BugCur.Type_         = BugType.Bug;  //user can't change
     BugCur.PriorityLevel = PIn.Int(comboPriority.Text);
     BugCur.VersionsFound = textVersionsFound.Text;
     BugCur.VersionsFixed = textVersionsFixed.Text;
     BugCur.Description   = textDescription.Text;
     BugCur.LongDesc      = textLongDesc.Text;
     BugCur.PrivateDesc   = textPrivateDesc.Text;
     BugCur.Discussion    = textDiscussion.Text;
     //Submitter
     if (IsNew)
     {
         Bugs.Insert(BugCur);
     }
     else
     {
         Bugs.Update(BugCur);
     }
 }