void Channel_Idle(object sender, IdleEventArgs e) { // e.bDoEvents = this._doEvents; // 2016/1/26 if (this._doEvents) Application.DoEvents(); }
void channel_Idle(object sender, IdleEventArgs e) { bool bConnected = this.Response.IsClientConnected; if (bConnected == false) { LibraryChannel channel = (LibraryChannel)sender; channel.Abort(); } e.bDoEvents = false; }
void Channel_Idle(object sender, IdleEventArgs e) { // e.bDoEvents = false; }
void channel_Idle(object sender, IdleEventArgs e) { Application.DoEvents(); }
void _channel_Idle(object sender, IdleEventArgs e) { e.bDoEvents = true; }
void Channel_Idle(object sender, IdleEventArgs e) { if (_channelDoEvents) Application.DoEvents(); }
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资源过度耗费 }
void Channel_Idle(object sender, IdleEventArgs e) { // 被专门的线程使用,因而不需要出让控制权 // e.bDoEvents = false; }
void _channel_Idle(object sender, IdleEventArgs e) { // .bDoEvents = true; // 2016/1/26 Application.DoEvents(); }
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; }
void DoIdle() { if (this.Idle != null) { IdleEventArgs e = new IdleEventArgs(); this.Idle(this, e); } System.Threading.Thread.Sleep(1); // 避免CPU资源过度耗费 }
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); // 确保动画显示效果 } }
void Channel_Idle(object sender, IdleEventArgs e) { e.bDoEvents = this._doEvents; }