PKStudio.Tree.InventoryTree._treeView_SelectionChanged C# (CSharp) Method

_treeView_SelectionChanged() private method

private _treeView_SelectionChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void _treeView_SelectionChanged(object sender, EventArgs e)
        {
            if (this.SelectedNode != null)
            {
                if (_treeView.ContextMenuStrip != null)
                {
                    _treeView.ContextMenuStrip.Items.Clear();
                    _treeView.ContextMenuStrip.Items.AddRange(this.SelectedNode.GetToolStripItems(OnContextMenuClick));
                }
            }
            OnSelectionChangeEvent(this.SelectedObject);
        }