コード例 #1
0
ファイル: TreeViewer.Designer.cs プロジェクト: you8/vvvv-sdk
        /// <summary>
        /// Disposes resources used by the control.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                FontChanged -= UserControl_FontChanged;

                this.FTreeView.NodeMouseDoubleClick -= this.TreeViewNodeMouseDoubleClick;
                this.FTreeView.DrawNode             -= this.FTreeViewDrawNode;
                this.FTreeView.AfterLabelEdit       -= this.TreeViewAfterLabelEdit;
                this.FTreeView.VisibleChanged       -= this.FTreeViewVisibleChanged;
                this.FTreeView.DragDrop             -= this.TreeViewDragDrop;
                this.FTreeView.AfterSelect          -= this.FTreeViewAfterSelect;
                this.FTreeView.MouseMove            -= this.FTreeViewMouseMove;
                this.FTreeView.MouseDown            -= this.FTreeViewMouseDown;
                this.FTreeView.NodeMouseClick       -= this.TreeViewNodeMouseClick;
                this.FTreeView.BeforeLabelEdit      -= this.TreeViewBeforeLabelEdit;
                this.FTreeView.KeyDown  -= this.FTreeViewKeyDown;
                this.FTreeView.ItemDrag -= this.TreeViewItemDrag;
                this.FTreeView.DragOver -= this.TreeViewDragOver;

                this.FToolTip.Popup -= this.ToolTipPopupHandler;

                if (FSynchronizer != null)
                {
                    FSynchronizer.Dispose();
                }

                foreach (MapperTreeNode mapperTreeNode in FTreeView.Nodes)
                {
                    mapperTreeNode.Dispose();
                }

                if (FRootMapper != null)
                {
                    FRootMapper.Dispose();
                }

                if (ParentForm != null)
                {
                    ParentForm.Activated -= ParentForm_Activated;
                }
            }
            base.Dispose(disposing);
        }
コード例 #2
0
        /// <summary>
        /// Disposes resources used by the control.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (FRootNode != null)
                {
                    FRootNode.Dispose();
                }

                if (FRootMapper != null)
                {
                    FRootMapper.Dispose();
                }

                FGraphEditor.Dispose();
                FGraphEditor = null;
            }
            base.Dispose(disposing);
        }