///-------------------------------------------------------------------------------- /// <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); }
///-------------------------------------------------------------------------------- /// <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); }