public MainForm() { InitializeComponent(); PnSendCommand.Enabled = false; Client = new TcpAppClient(); Client.ConnectionStatusChanged += Client_ConnectionStatusChanged; Client.ResponseReceived += Client_ResponseReceived; Client.CommandSend += Client_CommandSend; TerminalOutput.Clear(); }
public MainForm() { InitializeComponent(); PnSendCommand.Enabled = false; AppClient = new TcpAppClient(); AppClient.ConnectionStatusChanged += Client_ConnectionStatusChanged; AppClient.ResponseReceived += Client_ResponseReceived; AppClient.CommandSend += Client_CommandSend; TcpClient = new TcpClient(); TcpClient.ConnectionStatusChanged += Client_ConnectionStatusChanged; TcpClient.DataReceived += TcpClient_DataReceived; CbClientType.SelectedIndex = 0; TerminalOutput.Clear(); }