public override void OnShow() { AbstractWindowControl windowControl = this.Control as AbstractWindowControl; if (windowControl != null) { windowControl.OnShow(); } }