Beispiel #1
0
            protected override void OnDeviceInput(DeviceInputEventArgs e)
            {
                bool redraw = false;

                if (e.Message == WM_LBUTTONDOWN)
                {
                    _clicked = true;

                    // If we're over the entity, absorb the click
                    // (stops the window selection from happening)

                    if (_picked)
                    {
                        e.Handled = true;
                    }
                    redraw = true;
                }
                else if (e.Message == WM_LBUTTONUP)
                {
                    _clicked = false;
                    redraw   = true;
                }

                // Only update the graphics if things have changed

                if (redraw)
                {
                    TransientManager.CurrentTransientManager.UpdateTransient(
                        this, new IntegerCollection()
                        );

                    // Force a Windows message, as we may have absorbed the
                    // click event (and this also helps when unclicking)

                    ForceMessage();
                }

                base.OnDeviceInput(e);
            }
Beispiel #2
0
 protected override void OnDeviceInput(DeviceInputEventArgs e)
 {
     base.OnDeviceInput(e);
 }