Example #1
0
        private void button12_Click(object sender, EventArgs e)
        {
            // 字符串读取
            OperateResult <string> read = YRC1000Tcp.ReadStringVariable(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 button12_Click(object sender, EventArgs e)
 {
     // 字符串读取
     DemoUtils.ReadResultRender(YRC1000Tcp.ReadStringVariable(ushort.Parse(textBox5.Text)), textBox5.Text, textBox4);
 }