예제 #1
0
        private async void Button7_Click(object sender, EventArgs e)
        {
            OperateResult <DateTime> read = await siemensTcpNet.ReadDateTimeAsync(textBox8.Text);

            if (read.IsSuccess)
            {
                textBox7.Text = read.Content.ToString( );
            }
            else
            {
                MessageBox.Show("Failed:" + read.Message);
            }
        }
예제 #2
0
 private async void Button7_Click(object sender, EventArgs e)
 {
     // 读取时间
     DemoUtils.ReadResultRender(await siemensTcpNet.ReadDateTimeAsync(textBox3.Text), textBox3.Text, textBox4);
 }