Пример #1
0
        public void SetFocus(IUIInput value)
        {
            if (this.FocusControl != null && this.FocusControl != value)
            {
                LostFocusEventArgs lostFocusEventArgs = new LostFocusEventArgs(value);
                if (this.Focused)
                {
                    this.FocusControl.LostFocus(lostFocusEventArgs);
                }
                if (!lostFocusEventArgs.Cancel)
                {
                    this.FocusControl.IsMouseDown   = false;
                    this.FocusControl.IsMouseActive = false;
                    this.FocusControl.IsKeyDown     = false;
                    this.FocusControl.IsKeyActive   = false;
                    goto IL_0065;
                }
                return;
            }
            goto IL_0065;
IL_0065:
            this.m_FocusControl = value;
            if (!this.ControlBase.Focused)
            {
                this.Focus();
            }
            else
            {
                this.FocusControl.GotFocus(EventArgs.Empty);
                this.ControlBase.UIInvalidate(this);
            }
        }
Пример #2
0
 protected override void InternalOnLostFocus(LostFocusEventArgs e)
 {
     if (e.NewFocusObject != null && e.NewFocusObject is PlotChannelBase)
     {
         PlotChannelBase plotChannelBase = e.NewFocusObject as PlotChannelBase;
         base.ChannelName = plotChannelBase.Name;
     }
 }
Пример #3
0
 void IUIInput.LostFocus(LostFocusEventArgs e)
 {
     this.InternalOnLostFocus(e);
     this.OnLostFocus(e);
 }
Пример #4
0
 protected virtual void InternalOnLostFocus(LostFocusEventArgs e)
 {
 }
Пример #5
0
 public void LostFocus(LostFocusEventArgs e)
 {
 }