Exemplo n.º 1
0
 /// <summary>
 /// Deletes a single domain object from the model
 /// </summary>
 /// <param name="key">
 /// Key for object to delete.
 /// </param>
 /// <returns>
 /// Returns true if an object was actually deleted.
 /// </returns>
 public bool Delete(int key)
 {
     if (_collection != null)
     {
         Modified = _collection.Delete(key);
     }
     return(Modified);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deletes a single domain object from the catalog
 /// </summary>
 /// <param name="key">
 /// Key for object to delete.
 /// </param>
 public void Delete(int key)
 {
     _collection.Delete(key);
     InvokeObjectDeleted();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Deletes a single domain object from the catalog
 /// </summary>
 /// <param name="key">
 /// Key for object to delete.
 /// </param>
 /// <returns>
 /// Returns true if an object was actually deleted.
 /// </returns>
 public bool Delete(int key)
 {
     Modified = _collection.Delete(key);
     return(Modified);
 }