private void button1_Click(object sender, EventArgs e) { m_client = new K64LanToIo(comboBox1.SelectedIndex); if (m_client.Connect(out string outMessage) == false) { button1.ForeColor = Color.Red; MessageBox.Show("Failed to connect board id: " + comboBox1.Text); }
public void LoadControl(K64LanToIo client) { m_client = client; }
public void LoadControl(K64LanToIo client, IOs io, string text) { m_client = client; m_io = io; label1.Text = text; }