예제 #1
0
 protected virtual void OnEventReceived(EventReceivedEventArgs e)
 {
     if (EventReceived != null)
     {
         EventReceived(this, e);
     }
 }
예제 #2
0
 void OnEventReceived(object sender, EventReceivedEventArgs e)
 {
     if (e.Event == "RESIZE")
     {
         Resize();
     }
 }
예제 #3
0
파일: TextView.cs 프로젝트: shubhtr/smuxi
        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
            }
        }
예제 #4
0
파일: TextView.cs 프로젝트: grendello/smuxi
 void OnEventReceived(object sender, EventReceivedEventArgs e)
 {
     if (e.Event == "RESIZE") {
         Resize();
     }
 }
예제 #5
0
파일: Form.cs 프로젝트: txdv/smuxi
 protected virtual void OnEventReceived(EventReceivedEventArgs e)
 {
     if (EventReceived != null) {
         EventReceived(this, e);
     }
 }
예제 #6
0
파일: TextView.cs 프로젝트: pacificIT/smuxi
 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
     }
 }