コード例 #1
0
        protected virtual void OnMouseClickCore(MouseClickEventArgs args)
        {
            if (args == null || args.Cancel)
            {
                return;
            }

            MouseClick?.Invoke(this, args);

            if (args.Cancel)
            {
                return;
            }

            foreach (var mouseClick in Renderables.OfType <ISupportMouseClick>())
            {
                mouseClick.OnMouseClick(args);
                if (args.Cancel)
                {
                    return;
                }
            }
        }
コード例 #2
0
 void ISupportMouseClick.OnMouseClick(MouseClickEventArgs args) => OnMouseClickCore(args);