示例#1
0
 ///--------------------------------------------------------------------------------
 /// <summary>This method puts an item into the delete queue.</summary>
 ///
 /// <param name="item">The item to delete.</param>
 ///--------------------------------------------------------------------------------
 public virtual void Delete(WorkspaceViewModel item)
 {
     ItemsToDelete.Add(item);
     Items.Remove(item);
 }
示例#2
0
 ///--------------------------------------------------------------------------------
 /// <summary>This method puts an item into the add queue.</summary>
 ///
 /// <param name="item">The item to add.</param>
 ///--------------------------------------------------------------------------------
 public virtual void Add(WorkspaceViewModel item)
 {
     ItemsToAdd.Add(item);
     Items.Add(item);
 }