Пример #1
0
        protected override void OnMouseUp(MousePanelEvent e)
        {
            if (_mouseDown)
            {
                _mouseDown   = false;
                _currentNode = null;
            }

            base.OnMouseUp(e);
        }
Пример #2
0
        protected override void OnMouseDown(MousePanelEvent e)
        {
            if (!_mouseDown)
            {
                _currentNode = Utils.GetObjectByType <Node>(NodeType);
                Window.Instance.AddNode(_currentNode);

                _currentNode.Display();
                _currentNode.HighlightError();

                _mouseDown = true;
            }

            base.OnMouseDown(e);
        }
Пример #3
0
 protected override void OnMouseUp(MousePanelEvent e)
 {
     SetMouseCapture(false);
     SetClass("dragging", false);
 }
Пример #4
0
 protected override void OnMouseDown(MousePanelEvent e)
 {
     SetMouseCapture(true);
     SetClass("dragging", true);
 }
Пример #5
0
 protected override void OnDoubleClick(MousePanelEvent e)
 {
     _fileSelection?.OnConfirm(this);
 }
Пример #6
0
 protected override void OnClick(MousePanelEvent e)
 {
     _fileSelection?.OnSelect(this);
 }