public void Remove(IProjectItem item) { if (items.Remove(item)) { item.Close(); item.Modified -= new EventHandler(item_Modified); OnItemRemoved(new ProjectItemEventArgs(item)); OnModified(EventArgs.Empty); } }
public void Remove(IProjectItem item) { if (items.Remove(item)) { item.Close(); item.Modified -= item_Modified; OnItemRemoved(new ProjectItemEventArgs(item)); OnModified(ModificationEventArgs.Empty); } }
public void Remove(IProjectItem item) { if (_items.Remove(item)) { OnBeginUndoableOperation(EventArgs.Empty); item.Close(); item.BeginUndoableOperation -= delegate { OnBeginUndoableOperation(EventArgs.Empty); }; item.Modified -= new EventHandler(Item_Modified); OnItemRemoved(new ProjectItemEventArgs(item)); OnModified(EventArgs.Empty); } }