protected virtual void OnEventReceived(EventReceivedEventArgs e) { if (EventReceived != null) { EventReceived(this, e); } }
void OnEventReceived(object sender, EventReceivedEventArgs e) { if (e.Event == "RESIZE") { Resize(); } }
void OnEventReceived(object sender, EventReceivedEventArgs e) { if (e.Event == "RESIZE") { DateTime start, stop; start = DateTime.UtcNow; Resize(); stop = DateTime.UtcNow; #if LOG4NET Logger.DebugFormat( "OnEventReceived(): Resize() took: {0:0.00} ms " + "lines: {1} wrapped lines: {2} width: {3}", (stop - start).TotalMilliseconds, Lines.Count, WrappedLineCount, Width ); #endif } }