Ejemplo n.º 1
0
 private void btnConnect_Click(object sender, EventArgs e)
 {
     try
     {
         this._tcpSetting.IpAddress = txtAdress.Text;
         this._tcpSetting.Port      = Convert.ToInt32(txtPort.Text);
         this._k2601Control         = new K2601Control(this._tcpSetting);
         lblStatus.Text             = "Connected";
         SetK2601.Invoke(this._k2601Control);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 public void SetK2601(K2601Control k2601)
 {
     this._k2601Control = k2601;
 }