protected void WeightRead(string weight, BalanceReadStatus status) { if (OnReading != null) { OnReading(weight, status); } }
private void Device_OnReading(string weight, BalanceReadStatus status) { Invoke(new Action(() => { textBox1.Text = weight; })); }