common/Ui/GenesisToolBox/frmLegacyControl.cs

33 lines
804 B
C#
Raw Normal View History

2026-04-23 15:50:07 +00:00
using System;
using System.Windows.Forms;
using Xylem.Common.Hardware.WaterMeter.Genesis.GenesisCore;
using Xylem.Common.Hardware.WaterMeter.WaterMeterCore;
namespace Xylem.Common.Ui.GenesisToolBox
{
public partial class FrmLegacyControl : Form
{
public FrmLegacyControl()
{
InitializeComponent();
}
private void button1_Click(Object sender, System.EventArgs e)
{
var mb = new MeterBatch();
//for (int i = 1; i <= 10; i++)
//{
var a = new GenesisMeter(1, null, null, true, null);
mb.AddMeter(a);
//}
mb.MetersLogin();
for (Int32 i = 1; i <= 10; i++)
{
a.ReadRegister("");
}
}
}
}