TreeViewItem.HandleGUIEvents C# (CSharp) Method

HandleGUIEvents() public method

public HandleGUIEvents ( ) : void
return void
    void HandleGUIEvents()
    {
        // Handle events
        Event evt = Event.current;
        EventType currentEventType = evt.type;

        if (currentEventType == EventType.MouseDrag)
        {
            if (null != Dragged)
            {
                try{
                DragAndDrop.PrepareStartDrag();
                Dragged.Invoke(ParentControl.SelectedItem, new DragEventArgs());
                evt.Use();
                }
                catch (Exception e) {
                    Debug.Log (e);
                }
            }
        }
    }