private void btnConnect_Click(object sender, EventArgs e) { try { this._tcpSetting.IpAddress = txtAdress.Text; this._tcpSetting.Port = Convert.ToInt32(txtPort.Text); this._dmmControl = new DMM6500Control(this._tcpSetting); lblStatus.Text = "Connected"; SetDMM.Invoke(this._dmmControl); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void SetDMM(DMM6500Control dmm) { this._dmmControl = dmm; }