protected virtual void OnStatusChange(TPEventArgs ea) { TPEventHandler handler = TPStatusEvent; if (handler != null) { handler(this, ea); } }