public bug Remove(int index) { bug obj = bugCollection[index]; bugCollection.Remove(obj); return(obj); }
public BugzillaBug(bug bug) : this() { bug_id = bug.bug_id; reporter = bug.reporter; assigned_to = bug.assigned_to; priority = bug.priority; bug_severity = bug.bug_severity; bug_status = bug.bug_status; op_sys = bug.op_sys; component = bug.component; version = bug.version; classification = bug.classification; rep_platform = bug.rep_platform; customFields = bug.custom_fieldCollection.Cast<custom_field>().ToList(); var longDescCollection = GetDescriptionCollection(bug); if (longDescCollection.Count > 0) { description = longDescCollection[0].thetext; } if (longDescCollection.Count > 1) { comments = longDescCollection .Cast<long_desc>() .Skip(1) .Select(x => new BugzillaComment(x)) .ToList(); } creation_ts = bug.creation_ts; short_desc = DescriptionConverter.CleanUpContent(bug.short_desc); attachmentCollection = CreateAttachments(bug.attachmentCollection.Cast<attachment>()); }
private static long_descCollection GetDescriptionCollection(bug bug) { foreach (long_desc description in bug.long_descCollection) { description.thetext = DescriptionConverter.CleanUpContent(description.thetext); } return bug.long_descCollection; }
public bug Add(bug obj) { return bugCollection.Add(obj); }
public void Remove(bug obj) { base.Remove(obj); }
public void Insert(int index, bug obj) { base.Insert(index, obj); }
public bug Add(bug obj) { base.Add(obj); return obj; }
public bug Add(bug obj) { return(bugCollection.Add(obj)); }
public bug Add(bug obj) { base.Add(obj); return(obj); }