protected virtual bool OnChatText(ChatTextEventArgs e) { Contract.Requires <ArgumentNullException>(e != null); try { if (this.ChatText != null) { this.ChatText(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("ChatText", ex); } return(e.Handled); }
protected virtual bool OnChatText(ChatTextEventArgs e) { if (e == null) { throw new ArgumentNullException(); } try { if (this.ChatText != null) { this.ChatText(this, e); } } catch (Exception ex) { this.ReportEventHandlerException("ChatText", ex); } this.WriteHadnlerDebugInfo("ChatText", e); return(e.Handled); }
protected virtual bool OnChatText(ChatTextEventArgs e) { Contract.Requires<ArgumentNullException>(e != null); try { if (this.ChatText != null) this.ChatText(this, e); } catch (Exception ex) { this.ReportEventHandlerException("ChatText", ex); } return e.Handled; }