Esempio n. 1
0
    private void handleMouseClick(object sender, EventArgs e)
    {
        if (p_MouseDown || p_LogicDisabled)
        {
            return;
        }

        Point mousePosition = PointToClient(Cursor.Position);

        //clear selected
        uiBlocksSelected(null);

        MouseEventArgs args = e as MouseEventArgs;

        if (p_EventHijacker != null)
        {
            p_EventHijacker.OnMouseClick(this, mousePosition, args);
        }

        int l = p_UIElements.Length;

        for (int c = 0; c < l; c++)
        {
            p_UIElements[c].OnMouseClick(this, mousePosition, args);
        }
    }