public void RefreshTextLineMarker() { if (_textLineMarker != null && !Tasks.Any()) { ErrorHandler.Ignore(_textLineMarker.Invalidate()); } }
public void Release() { // Called from "OnDelete" // task list makes sure it doesn't show up // and we remove it later when an enumeration is asked. isDeleted = true; if (marker != null) { marker.Invalidate(); marker = null; } if (commands != null) { commands.Dispose(); commands = null; } userContext = null; taskManager = null; if (location != null) { location.Dispose(); location = null; } if (persistLoc != null) { persistLoc.Dispose(); persistLoc = null; } if (initLoc != null) { initLoc.Dispose(); initLoc = null; } }
protected virtual void Dispose(bool disposing) { if (this.textLineMarker != null) { NativeMethods.ThrowOnFailure(textLineMarker.Invalidate()); this.markerValid = false; this.textLineMarker.UnadviseClient(); } this.textLineMarker = null; this.site = null; }
public virtual void OnDeleteTask() { if (textLineMarker != null) { textLineMarker.Invalidate(); } textLineMarker = null; }
public void Dispose() { if (marker != null) { marker.Invalidate(); marker = null; } }
public virtual int OnDeleteTask() { if (textLineMarker != null) { textLineMarker.Invalidate(); } textLineMarker = null; return(0); }
/// <include file='doc\DocumentTask.uex' path='docs/doc[@for="DocumentTask.OnRemoved"]/*' /> protected override void OnRemoved(EventArgs e) { if (textLineMarker != null) { NativeMethods.ThrowOnFailure(textLineMarker.Invalidate()); } textLineMarker = null; this.site = null; base.OnRemoved(e); }