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); } }
private async void Button7_Click(object sender, EventArgs e) { // 读取时间 DemoUtils.ReadResultRender(await siemensTcpNet.ReadDateTimeAsync(textBox3.Text), textBox3.Text, textBox4); }