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); } }
protected override void InternalOnLostFocus(LostFocusEventArgs e) { if (e.NewFocusObject != null && e.NewFocusObject is PlotChannelBase) { PlotChannelBase plotChannelBase = e.NewFocusObject as PlotChannelBase; base.ChannelName = plotChannelBase.Name; } }
void IUIInput.LostFocus(LostFocusEventArgs e) { this.InternalOnLostFocus(e); this.OnLostFocus(e); }
protected virtual void InternalOnLostFocus(LostFocusEventArgs e) { }
public void LostFocus(LostFocusEventArgs e) { }