private void button9_Click(object sender, EventArgs e) { // 整型读取 OperateResult <short> read = YRC1000Tcp.ReadIntegerVariable(ushort.Parse(textBox5.Text)); if (read.IsSuccess) { textBox4.Text = DateTime.Now.ToString( ) + Environment.NewLine + read.Content; } else { MessageBox.Show("Read Failed: " + read.Message); } }
private void button9_Click(object sender, EventArgs e) { // 整型读取 DemoUtils.ReadResultRender(YRC1000Tcp.ReadIntegerVariable(ushort.Parse(textBox5.Text)), textBox5.Text, textBox4); }