Exemplo n.º 1
0
 protected virtual void OnEventReceived(EventReceivedEventArgs e)
 {
     if (EventReceived != null)
     {
         EventReceived(this, e);
     }
 }
Exemplo n.º 2
0
 void OnEventReceived(object sender, EventReceivedEventArgs e)
 {
     if (e.Event == "RESIZE")
     {
         Resize();
     }
 }
Exemplo n.º 3
0
        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
            }
        }
Exemplo n.º 4
0
 void OnEventReceived(object sender, EventReceivedEventArgs e)
 {
     if (e.Event == "RESIZE") {
         Resize();
     }
 }
Exemplo n.º 5
0
Arquivo: Form.cs Projeto: txdv/smuxi
 protected virtual void OnEventReceived(EventReceivedEventArgs e)
 {
     if (EventReceived != null) {
         EventReceived(this, e);
     }
 }
Exemplo n.º 6
0
 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
     }
 }