void ElectricMeterInquiryStop(ElectricMeterInquirer inqurier) { if (null != inqurier) { inqurier.StopInquiry(); inqurier = null; } }
/// <summary> /// 开始查询 /// </summary> private ElectricMeterInquirer ElectricMeterInquiryStart(List<ModbusDeviceInfo> electricMeterList) { ElectricMeterInquirer inquirer = new ElectricMeterInquirer(electricMeterList); inquirer.CyclePeriod = Update_period; inquirer.TbxControl = textBox1; inquirer.StartInquiry(); return inquirer; }