示例#1
0
 LibraryChannel CallGetChannel(bool bBeginLoop)
 {
     if (this.GetChannel == null)
         return null;
     GetChannelEventArgs e = new GetChannelEventArgs();
     e.BeginLoop = bBeginLoop;
     this.GetChannel(this, e);
     if (string.IsNullOrEmpty(e.ErrorInfo) == false)
         throw new Exception(e.ErrorInfo);
     return e.Channel;
 }
示例#2
0
        LibraryChannel CallGetChannel(bool bBeginLoop)
        {
            if (this.GetChannel == null)
            {
                return(null);
            }
            GetChannelEventArgs e = new GetChannelEventArgs();

            e.BeginLoop = bBeginLoop;
            this.GetChannel(this, e);
            if (string.IsNullOrEmpty(e.ErrorInfo) == false)
            {
                throw new Exception(e.ErrorInfo);
            }
            return(e.Channel);
        }
示例#3
0
 void binaryResControl1_GetChannel(object sender, GetChannelEventArgs e)
 {
     e.Channel = this.GetChannel();
     this.stop.OnStop += new StopEventHandler(this.DoStop);
     this.stop.BeginLoop();
 }
示例#4
0
文件: TestForm.cs 项目: renyh1013/dp2
        private void kernelResTree1_GetChannel(object sender, GetChannelEventArgs e)
        {
            e.Channel = this.MainForm.GetChannel();

        }