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