protected virtual void DoExit() { if (KTUIControlList != null && KTUIControlList.Remove(this)) { if (_disableonexit) { this.Enabled = false; } if (this._hideonexit) { this.Visible = false; } if (CurKTUIControl != null) { CurKTUIControl.Enabled = true; CurKTUIControl.Visible = true; CurKTUIControl.Show(); if (this._hideonexit) { CurKTUIControl.BringToFront(); } CurKTUIControl.Focus(); CurKTUIControl.DoReEnter(); } if (OnKTUIControlChanged != null) { OnKTUIControlChanged(this); } } }
public virtual void DoEnter() { UIControlbase uictrl = CurKTUIControl; if (CurKTUIControl == this) { return; } if (_baseKTUIControl != null && CurKTUIControl != null && _baseKTUIControl != CurKTUIControl) { CurKTUIControl.DoExit(); } if (CurKTUIControl != null) { CurKTUIControl.Enabled = false; if (CurKTUIControl._prehideonenter) { CurKTUIControl.Visible = false; } } if (KTUIControlList != null) { KTUIControlList.Add(this); this.Enabled = true; this.Visible = true; this.Show(); this.BringToFront(); this.Focus(); if (OnKTUIControlChanged != null) { OnKTUIControlChanged(uictrl); } } }