public void RemoveImport (MSBuildImport import)
		{
			AssertCanModify ();
			if (import.ParentObject == this) {
				import.RemoveIndent ();
				ChildNodes = ChildNodes.Remove (import);
				NotifyChanged ();
			}
		}
Exemplo n.º 2
0
 public void RemoveImport(MSBuildImport import)
 {
     AssertCanModify();
     if (import.ParentObject == this)
     {
         import.RemoveIndent();
         ChildNodes = ChildNodes.Remove(import);
         NotifyChanged();
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
		}