예제 #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            // 双整型读取
            OperateResult <int> read = YRC1000Tcp.ReadDoubleIntegerVariable(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 button10_Click(object sender, EventArgs e)
 {
     // 双整形读取
     DemoUtils.ReadResultRender(YRC1000Tcp.ReadDoubleIntegerVariable(ushort.Parse(textBox5.Text)), textBox5.Text, textBox4);
 }