Exemplo n.º 1
0
        private void Idle(double idle, SpanEventHandler spanEvent)
        {
            if (spanEvent != null)
            {
                TimeSpan span = new TimeSpan((long)(idle * 1000L));

                if (m_invoker != null && m_invoker.InvokeRequired)
                {
                    m_invoker.Invoke(spanEvent, new object[] { this, span });
                }
                else
                {
                    spanEvent(this, span);
                }
            }
        }
Exemplo n.º 2
0
        private void Idle(double idle, SpanEventHandler spanEvent)
        {
            if (spanEvent != null)
            {
                TimeSpan span = new TimeSpan((long)(idle * 1000L));

                if (m_invoker != null && m_invoker.InvokeRequired)
                {
                    m_invoker.Invoke(spanEvent, new object[] { this, span });
                }
                else
                    spanEvent(this, span);
            }
        }