示例#1
0
        void timer_Tick(object sender, EventArgs e)
        {
            if (this.IsBusy != null)
            {
                IsBusyEventArgs e1 = new IsBusyEventArgs();
                this.IsBusy(this, e1);
                if (e1.IsBusy == true)
                    return;

                lock (this.messages)
                {
                    for (int i = 0; i < this.messages.Count; i++)
                    {
                        API.PostMessage(this.form.Handle, this.messages[i], 0, 0);
                    }

                    this.messages.Clear();
                }
                this.timer.Stop();
            }
        }
示例#2
0
文件: Commander.cs 项目: zszqwe/dp2
        void timer_Tick(object sender, EventArgs e)
        {
            if (this.IsBusy != null)
            {
                IsBusyEventArgs e1 = new IsBusyEventArgs();
                this.IsBusy(this, e1);
                if (e1.IsBusy == true)
                {
                    return;
                }

                lock (this.messages)
                {
                    for (int i = 0; i < this.messages.Count; i++)
                    {
                        API.PostMessage(this.form.Handle, this.messages[i], 0, 0);
                    }

                    this.messages.Clear();
                }
                this.timer.Stop();
            }
        }
示例#3
0
 void commander_IsBusy(object sender, IsBusyEventArgs e)
 {
     if (this.m_webExternalHost_old.ChannelInUse ||
         this.m_webExternalHost_new.ChannelInUse == true)
     {
         e.IsBusy = true;
     }
 }
示例#4
0
 void commander_IsBusy(object sender, IsBusyEventArgs e)
 {
     e.IsBusy = this.m_nInViewing > 0;
 }
示例#5
0
 void commander_IsBusy(object sender, IsBusyEventArgs e)
 {
     e.IsBusy = this.m_webExternalHost_item.ChannelInUse || this.m_webExternalHost_biblio.ChannelInUse;
 }
示例#6
0
 void commander_IsBusy(object sender, IsBusyEventArgs e)
 {
     e.IsBusy = this.m_webExternalHost_readerInfo.ChannelInUse;
 }