33 lines
804 B
C#
33 lines
804 B
C#
|
|
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("");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|