示例#1
0
文件: Form1.cs 项目: gangjian/work
 void ElectricMeterInquiryStop(ElectricMeterInquirer inqurier)
 {
     if (null != inqurier)
     {
         inqurier.StopInquiry();
         inqurier = null;
     }
 }
示例#2
0
文件: Form1.cs 项目: gangjian/work
        /// <summary>
        /// 开始查询
        /// </summary>
        private ElectricMeterInquirer ElectricMeterInquiryStart(List<ModbusDeviceInfo> electricMeterList)
        {
            ElectricMeterInquirer inquirer = new ElectricMeterInquirer(electricMeterList);
            inquirer.CyclePeriod = Update_period;
            inquirer.TbxControl = textBox1;
            inquirer.StartInquiry();

            return inquirer;
        }