private void btnScan_Click(object sender, EventArgs e) { frmScanI2C frm = new frmScanI2C(mBridge, (byte)numPort.Value); frm.SelectedAddr = ctlI2CAddress1.Addr7; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frm.SelectedAddr != -1) { ctlI2CAddress1.Addr7 = (byte)frm.SelectedAddr; } } }
private void btnScan_Click(object sender, EventArgs e) { frmScanI2C frm = new frmScanI2C(mBridge, (byte)numPort.Value ); frm.SelectedAddr = ctlI2CAddress1.Addr7; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { if (frm.SelectedAddr != -1) { ctlI2CAddress1.Addr7 = (byte)frm.SelectedAddr; } } }