Example #1
0
 public void RefreshTextLineMarker()
 {
     if (_textLineMarker != null && !Tasks.Any())
     {
         ErrorHandler.Ignore(_textLineMarker.Invalidate());
     }
 }
Example #2
0
 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;
     }
 }
Example #3
0
        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;
        }
Example #4
0
 public virtual void OnDeleteTask()
 {
     if (textLineMarker != null)
     {
         textLineMarker.Invalidate();
     }
     textLineMarker = null;
 }
Example #5
0
 public void Dispose()
 {
     if (marker != null)
     {
         marker.Invalidate();
         marker = null;
     }
 }
Example #6
0
 public virtual int OnDeleteTask()
 {
     if (textLineMarker != null)
     {
         textLineMarker.Invalidate();
     }
     textLineMarker = null;
     return(0);
 }
Example #7
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);
 }