Exemple #1
0
 /// <summary>
 /// Creates and adds an item using the specified data.
 /// </summary>
 /// <param name="description">The item description.</param>
 /// <param name="projectItem">The name of the project item.</param>
 /// <param name="line">The source code line.</param>
 /// <param name="column">The source code column.</param>
 /// <returns>The created ListItem.</returns>
 public virtual ListItem AddItem(string description, ProjectItem projectItem, int line, int column)
 {
     ListItem item = new ListItem(description, projectItem, line, column);
     AddItem(item);
     return item;
 }
Exemple #2
0
 /// <summary>
 /// Adds the specified item to the list.
 /// </summary>
 /// <param name="item">The item to add.</param>
 public virtual void AddItem(ListItem item)
 {
     List.Add(item);
     RefreshList();
 }