Пример #1
0
        void TriggerClick()
        {
            TriggerMouseCallback();

            Group.SetButtonStates(this);

            Callback.OnClick(Widget, EventArgs.Empty);
            Callback.OnCheckedChanged(Widget, EventArgs.Empty);

            if (Control.AcceptsFirstResponder())
            {
                Control.Window?.MakeFirstResponder(Control);
            }
        }
Пример #2
0
        void control_Activated(object sender, EventArgs e)
        {
            if (Activated != null)
            {
                Activated(this, e);
            }
            Widget.OnClick(EventArgs.Empty);
            Widget.OnCheckedChanged(EventArgs.Empty);

            if (Control.AcceptsFirstResponder() && Control.Window != null)
            {
                Control.Window.MakeFirstResponder(Control);
            }
        }