/// <summary> /// Stops observing changes on this file. /// </summary> private void StopObservingNestedProjectFile() { ProjectContainerNode parent = this.ProjectMgr as ProjectContainerNode; Debug.Assert(parent != null, "The parent project for nested projects should be subclassed from ProjectContainerNode"); parent.NestedProjectNodeReloader.StopObservingItem(this.GetMkDocument()); }
/// <summary> /// Ignores observing changes on this file depending on the boolean flag. /// </summary> /// <param name="ignoreFlag">Flag indicating whether or not to ignore changes (1 to ignore, 0 to stop ignoring).</param> private void IgnoreNestedProjectFile(bool ignoreFlag) { ProjectContainerNode parent = this.ProjectMgr as ProjectContainerNode; Debug.Assert(parent != null, "The parent project for nested projects should be subclassed from ProjectContainerNode"); parent.NestedProjectNodeReloader.IgnoreItemChanges(this.GetMkDocument(), ignoreFlag); }
/// <summary> /// Starts observing changes on this file. /// </summary> private void ObserveNestedProjectFile() { ProjectContainerNode parent = this.ProjectMgr as ProjectContainerNode; ThreadHelper.ThrowIfNotOnUIThread(); Debug.Assert(parent != null, "The parent project for nested projects should be subclassed from ProjectContainerNode"); parent.NestedProjectNodeReloader.ObserveItem(this.GetMkDocument(), this.ID); }