예제 #1
0
 public void Remove(IProjectItem item)
 {
     if (items.Remove(item))
     {
         item.Close();
         item.Modified -= new EventHandler(item_Modified);
         OnItemRemoved(new ProjectItemEventArgs(item));
         OnModified(EventArgs.Empty);
     }
 }
예제 #2
0
 public void Remove(IProjectItem item)
 {
     if (items.Remove(item))
     {
         item.Close();
         item.Modified -= item_Modified;
         OnItemRemoved(new ProjectItemEventArgs(item));
         OnModified(ModificationEventArgs.Empty);
     }
 }
예제 #3
0
파일: Project.cs 프로젝트: koenmd/nERD
 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);
     }
 }
예제 #4
0
파일: Project.cs 프로젝트: gbaychev/NClass
		public void Remove(IProjectItem item)
		{
			if (items.Remove(item))
			{
				item.Close();
				item.Modified -= new EventHandler(item_Modified);
				OnItemRemoved(new ProjectItemEventArgs(item));
				OnModified(EventArgs.Empty);
			}
		}