コード例 #1
0
        public override void Dispose()
        {
            disposed = true;
            if (colCommit != null)
            {
                colCommit.Destroy();
                colCommit = null;
            }

            if (colRemote != null)
            {
                colRemote.Destroy();
                colRemote = null;
            }
            if (filestore != null)
            {
                filestore.Dispose();
                filestore = null;
            }
            if (this.diffRenderer != null)
            {
                this.diffRenderer.Destroy();
                this.diffRenderer = null;
            }
            VersionControlService.FileStatusChanged -= OnFileStatusChanged;
            if (widget != null)
            {
                widget.Destroy();
                widget = null;
            }
            base.Dispose();
        }
コード例 #2
0
 public override void Dispose()
 {
     disposed = true;
     if (colCommit != null)
     {
         colCommit.Destroy();
         colCommit = null;
     }
     if (colRemote != null)
     {
         colRemote.Destroy();
         colRemote = null;
     }
     if (colFile != null)
     {
         colFile.Destroy();
         colFile = null;
     }
     if (filestore != null)
     {
         filestore.Dispose();
         filestore = null;
     }
     if (filelist != null)
     {
         filelist.DoPopupMenu        = null;
         filelist.RowActivated      -= OnRowActivated;
         filelist.DiffLineActivated -= OnDiffLineActivated;
         filelist.TestExpandRow     -= OnTestExpandRow;
         filelist.Selection.Changed -= OnCursorChanged;
         filelist.Destroy();
         filelist = null;
     }
     if (cellToggle != null)
     {
         cellToggle.Toggled -= OnCommitToggledHandler;
         cellToggle.Destroy();
         cellToggle = null;
     }
     if (this.diffRenderer != null)
     {
         this.diffRenderer.Destroy();
         this.diffRenderer = null;
     }
     VersionControlService.FileStatusChanged -= OnFileStatusChanged;
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     localDiff.Clear();
     remoteDiff.Clear();
     base.Dispose();
 }
コード例 #3
0
ファイル: ChangeSetView.cs プロジェクト: zcf7822/monodevelop
        protected override void OnDestroyed()
        {
            base.OnDestroyed();

            disposed = true;
            if (colCommit != null)
            {
                colCommit.Destroy();
                colCommit = null;
            }

            if (this.diffRenderer != null)
            {
                this.diffRenderer.Destroy();
                this.diffRenderer = null;
            }
        }