Ejemplo n.º 1
0
 /// <summary>
 /// Inserts a OperationLogItem instance into the collection.
 /// </summary>
 /// <param name="item">The item to add.</param>
 public void Insert(int index, OperationLogItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     List.Insert(index, item);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a OperationLogItem instance to the collection.
 /// </summary>
 /// <param name="item">The item to add.</param>
 public int Add(OperationLogItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     return(List.Add(item));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Removes a OperationLogItem item to the collection.
 /// </summary>
 /// <param name="item">The item to remove.</param>
 public void Remove(OperationLogItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     List.Remove(item);
 }
Ejemplo n.º 4
0
 internal OperationLogItemEventArgs(OperationLogItem item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     _item = item;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Discovers if the given item is in the collection.
 /// </summary>
 /// <param name="item">The item to find.</param>
 /// <returns>Returns true if the given item is in the collection.</returns>
 public bool Contains(OperationLogItem item)
 {
     if (IndexOf(item) == -1)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Returns the index of the item in the collection.
 /// </summary>
 /// <param name="item">The item to find.</param>
 /// <returns>The index of the item, or -1 if it is not found.</returns>
 public int IndexOf(OperationLogItem item)
 {
     return(List.IndexOf(item));
 }