예제 #1
0
 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);
 }
예제 #2
0
 private void btnDisConnect_Click(object sender, EventArgs e)
 {
     if (telnetDSF != null)
     {
         if (telnetDSF.IsConnected)
         {
             telnetDSF.Disconnect();
         }
         telnetDSF = null;
     }
 }
예제 #3
0
 public MainForm()
 {
     InitializeComponent();
     telnetDSF = null;
 }