Пример #1
0
        private void SetNodeDetailDialogInfo(Node node)
        {
            if (_nodeDiag == null)
            {
                _nodeDiag             = new NodeItemsDialog();
                _nodeDiag.FormClosed += (o, args) =>
                {
                    _nodeDiag = null;
                };
                _nodeDiag.Show();
            }
            else
            {
                _nodeDiag.BringToFront();
            }

            _nodeDiag.SetNode(FindForm() as MainWindow, _scene, node);
        }
        private void SetNodeDetailDialogInfo(Node node)
        {
            if (_nodeDiag == null)
            {
                _nodeDiag             = new NodeItemsDialog();
                _nodeDiag.FormClosed += (o, args) =>
                {
                    _nodeDiag = null;
                };
                _nodeDiag.Show();
            }
            else
            {
                _nodeDiag.BringToFront();
            }

            _nodeDiag.SetNode(ControlHelper.FindParent <MainViewer3DControl>(this), _scene, node);
        }