public void RemoveImport (MSBuildImport import)
		{
			AssertCanModify ();
			if (import.ParentObject == this) {
				import.RemoveIndent ();
				ChildNodes = ChildNodes.Remove (import);
				NotifyChanged ();
			}
		}
예제 #2
0
 public void RemoveImport(MSBuildImport import)
 {
     AssertCanModify();
     if (import.ParentObject == this)
     {
         import.RemoveIndent();
         ChildNodes = ChildNodes.Remove(import);
         NotifyChanged();
     }
 }
예제 #3
0
        public void RemoveImport(MSBuildImport import)
        {
            AssertCanModify();
            if (import.ParentProject != this)
            {
                throw new InvalidOperationException("Import object does not belong to this project");
            }

            if (import.ParentObject == this)
            {
                import.RemoveIndent();
                ChildNodes = ChildNodes.Remove(import);
                NotifyChanged();
            }
            else
            {
                ((MSBuildImportGroup)import.ParentObject).RemoveImport(import);
            }
        }
예제 #4
0
		public void RemoveImport (MSBuildImport import)
		{
			AssertCanModify ();
			if (import.ParentProject != this)
				throw new InvalidOperationException ("Import object does not belong to this project");
			
			if (import.ParentObject == this) {
				import.RemoveIndent ();
				ChildNodes = ChildNodes.Remove (import);
				NotifyChanged ();
			} else
				((MSBuildImportGroup)import.ParentObject).RemoveImport (import);
		}