コード例 #1
0
        /// <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}";
            }
        }
コード例 #2
0
        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( ));
            }
        }
コード例 #3
0
        private void userButton25_Click(object sender, EventArgs e)
        {
            // 订货号读取
            OperateResult <string> read = siemensTcpNet.ReadOrderNumber( );

            if (read.IsSuccess)
            {
                TextBoxAppendStringLine(read.Content);
            }
            else
            {
                MessageBox.Show(read.ToMessageShowString( ));
            }
        }