private void btnConnect_Click(object sender, EventArgs e) { telnetDSF = new TelnetInterfaceDsf(); telnetDSF.OnDataReceived += new ClientHandlePacketData(client_OnDataReceived); telnetDSF.ConnectToServer("192.168.0.105", 10001); //telnetDSF = new TelnetInterfaceDsf("192.168.1.62", 10001); }
private void btnDisConnect_Click(object sender, EventArgs e) { if (telnetDSF != null) { if (telnetDSF.IsConnected) { telnetDSF.Disconnect(); } telnetDSF = null; } }
public MainForm() { InitializeComponent(); telnetDSF = null; }