/// <summary> /// 订货号 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Btn_Order_Click(object sender, EventArgs e) { OperateResult <string> result = siemensTcpNet.ReadOrderNumber(); if (result.IsSuccess) { txt_Result_Many.Text = $"订货号:{result.Content}"; } }
private void button3_Click(object sender, EventArgs e) { // 订货号 OperateResult <string> read = siemensTcpNet.ReadOrderNumber( ); if (read.IsSuccess) { textBox10.Text = "订货号:" + read.Content; } else { MessageBox.Show("读取失败:" + read.ToMessageShowString( )); } }
private void userButton25_Click(object sender, EventArgs e) { // 订货号读取 OperateResult <string> read = siemensTcpNet.ReadOrderNumber( ); if (read.IsSuccess) { TextBoxAppendStringLine(read.Content); } else { MessageBox.Show(read.ToMessageShowString( )); } }