同步操作将从 糖醋鱼/ClientServerProject 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace HslCommunicationNetTestTool{public partial class FormCreateClient : Form{public FormCreateClient(){InitializeComponent();}private void FormCreateClient_Load(object sender, EventArgs e){textBox3.Text = Guid.Empty.ToString();}private void userButton1_Click(object sender, EventArgs e){try{Client = new HslCommunication.Enthernet.NetSimplifyClient(textBox1.Text, int.Parse(textBox2.Text)){Token = new Guid(textBox3.Text),ConnectTimeOut = int.Parse(textBox4.Text),};IpAddress = textBox1.Text;Port = textBox2.Text;Token = textBox3.Text;ConnectTimeout = textBox4.Text;DialogResult = DialogResult.OK;}catch(Exception ex){MessageBox.Show(ex.Message);}}public string IpAddress { get; private set; }public string Port { get; private set; }public string Token { get; private set; }public string ConnectTimeout { get; private set; }public HslCommunication.Enthernet.NetSimplifyClient Client { get; private set; }}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。