Exemplo n.º 1
0
        void Channel_Idle(object sender, IdleEventArgs e)
        {
            // e.bDoEvents = this._doEvents;

            // 2016/1/26
            if (this._doEvents)
                Application.DoEvents();
        }
Exemplo n.º 2
0
    void channel_Idle(object sender, IdleEventArgs e)
    {
        bool bConnected = this.Response.IsClientConnected;

        if (bConnected == false)
        {
            LibraryChannel channel = (LibraryChannel)sender;
            channel.Abort();
        }

        e.bDoEvents = false;
    }
Exemplo n.º 3
0
        void Channel_Idle(object sender, IdleEventArgs e)
        {
            // e.bDoEvents = false;

        }
Exemplo n.º 4
0
 void channel_Idle(object sender, IdleEventArgs e)
 {
     Application.DoEvents();
 }
Exemplo n.º 5
0
 void _channel_Idle(object sender, IdleEventArgs e)
 {
     e.bDoEvents = true;
 }
Exemplo n.º 6
0
 void Channel_Idle(object sender, IdleEventArgs e)
 {
     if (_channelDoEvents)
         Application.DoEvents();
 }
Exemplo n.º 7
0
        void DoIdle()
        {
            bool bDoEvents = true;
            // 2012/3/18
            // 2012/11/28
            if (this.Container != null
                && this.Container.GUI == false)
                bDoEvents = false;

            // System.Threading.Thread.Sleep(1);	// 避免CPU资源过度耗费

            if (this.Idle != null)
            {
                IdleEventArgs e = new IdleEventArgs();
                this.Idle(this, e);
                bDoEvents = e.bDoEvents;
            }

            if (bDoEvents == true)
            {
                try
                {
                    Application.DoEvents();	// 出让界面控制权
                }
                catch
                {
                }
            }

            // System.Threading.Thread.Sleep(1);	// 避免CPU资源过度耗费
        }
Exemplo n.º 8
0
 void Channel_Idle(object sender, IdleEventArgs e)
 {
     // 被专门的线程使用,因而不需要出让控制权
     // e.bDoEvents = false;
 }
Exemplo n.º 9
0
        void _channel_Idle(object sender, IdleEventArgs e)
        {
            // .bDoEvents = true;

            // 2016/1/26
            Application.DoEvents();
        }
Exemplo n.º 10
0
        static void sort_Idle(object sender, IdleEventArgs e)
        {
            DpResultSet resultset = (DpResultSet)sender;
#if NO
            Delegate_isConnected isConnected = (Delegate_isConnected)resultset.Param;

            if (isConnected() == false)
            {
                throw new InterruptException("中断");
            }
#endif

            ChannelHandle handle = (ChannelHandle)resultset.Param;
            if (handle.DoIdle() == false)
                throw new InterruptException("中断");

            // e.bDoEvents = false;
        }
Exemplo n.º 11
0
        void DoIdle()
        {
            if (this.Idle != null)
            {
                IdleEventArgs e = new IdleEventArgs();
                this.Idle(this, e);
            }

            System.Threading.Thread.Sleep(1);	// 避免CPU资源过度耗费
        }
Exemplo n.º 12
0
        void Channel_Idle(object sender, IdleEventArgs e)
        {
            // e.bDoEvents = false;

            if (_index != -1)
            {
                Console.Write("\b");
                Console.Write(new string(movingChars[_index], 1));
                _index++;
                if (_index > 3)
                    _index = 0;

                System.Threading.Thread.Sleep(500);	// 确保动画显示效果
            }
        }
Exemplo n.º 13
0
 void Channel_Idle(object sender, IdleEventArgs e)
 {
     e.bDoEvents = this._doEvents;
 }