protected virtual void OnWindowActivated( ) { if ( WindowActivated != null ) { CbtEventArgs e = new CbtEventArgs ( ); PrepareEventData ( e ); WindowActivated ( this, e ); } }