예제 #1
0
 /// <summary>
 /// When the doc data is closed, make sure we reset the valiation messages
 /// (if there's any) from the ErrorList window.
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (this.validationController != null)
         {
             this.validationController.ClearMessages();
             // un-register our observer with the controller.
             this.validationController.RemoveObserver(this.errorListObserver);
             this.validationController = null;
             if (this.errorListObserver != null)
             {
                 this.errorListObserver.Dispose();
                 this.errorListObserver = null;
             }
         }
         if (this.diagramDocumentLockHolder != null)
         {
             this.diagramDocumentLockHolder.Dispose();
             this.diagramDocumentLockHolder = null;
         }
         this.diagramPartitionId = global::System.Guid.Empty;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
예제 #2
0
 /// <summary>
 /// When the doc data is closed, make sure we reset the valiation messages
 /// (if there's any) from the ErrorList window.
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (this.validationController != null)
         {
             this.validationController.ClearMessages();
             // un-register our observer with the controller.
             this.validationController.RemoveObserver(this.errorListObserver);
             this.validationController = null;
             if (this.errorListObserver != null)
             {
                 this.errorListObserver.Dispose();
                 this.errorListObserver = null;
             }
         }
         if (this.diagramDocumentLockHolder != null)
         {
             this.diagramDocumentLockHolder.Dispose();
             this.diagramDocumentLockHolder = null;
         }
         if (this.eventsCookie != 0)
         {
             DslShell::SubordinateFileHelper.UnadviseRunningDocumentTableEvents(this.ServiceProvider, this.eventsCookie);
             this.eventsCookie = 0;
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
예제 #3
0
		/// <summary>
		/// When the doc data is closed, make sure we reset the valiation messages 
		/// (if there's any) from the ErrorList window.
		/// </summary>
		/// <param name="disposing"></param>
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (this.validationController != null)
				{
					this.validationController.ClearMessages();
					// un-register our observer with the controller.
					this.validationController.RemoveObserver(this.errorListObserver);
					this.validationController = null;
					if ( this.errorListObserver != null )
					{
						this.errorListObserver.Dispose();
						this.errorListObserver = null;
					}
				}
				if (this.diagramDocumentLockHolder != null)
				{
					this.diagramDocumentLockHolder.Dispose();
					this.diagramDocumentLockHolder = null;
				}
				this.diagramPartitionId = global::System.Guid.Empty;
			}
			finally
			{
				base.Dispose(disposing);
			}
		}
예제 #4
0
		/// <summary>
		/// When the doc data is closed, make sure we reset the valiation messages 
		/// (if there's any) from the ErrorList window.
		/// </summary>
		/// <param name="disposing"></param>
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (this.validationController != null)
				{
					this.validationController.ClearMessages();
					// un-register our observer with the controller.
					this.validationController.RemoveObserver(this.errorListObserver);
					this.validationController = null;
					if ( this.errorListObserver != null )
					{
						this.errorListObserver.Dispose();
						this.errorListObserver = null;
					}
				}
				if (this.diagramDocumentLockHolder != null)
				{
					this.diagramDocumentLockHolder.Dispose();
					this.diagramDocumentLockHolder = null;
				}
				if (this.eventsCookie != 0)
				{
					DslShell::SubordinateFileHelper.UnadviseRunningDocumentTableEvents(this.ServiceProvider, this.eventsCookie);
					this.eventsCookie = 0;
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}