private void EditEIBAddress(SubItemEventArgs e) { EIBAddressForm frm = new EIBAddressForm(); frm.CurrentValue = new KNX.EIBAddress(e.Item.SubItems[e.SubItem].Text); if (frm.ShowDialog() == DialogResult.OK) { e.Item.SubItems[e.SubItem].Text = frm.CurrentValue.ToString(); DataRow telegram_row = ((DataRow)e.Item.Tag).GetChildRows(_ds.Relations[0])[0]; telegram_row[e.SubItem - 1] = frm.CurrentValue; } }
private void EditEIBAddress(SubItemEventArgs e) { EIBAddressForm frm = new EIBAddressForm(); frm.CurrentValue = new KNX.EIBAddress(e.Item.SubItems[e.SubItem].Text); if (frm.ShowDialog() == DialogResult.OK) { e.Item.SubItems[e.SubItem].Text = frm.CurrentValue.ToString(); DataRow telegram_row = ((DataRow)e.Item.Tag).GetChildRows(_ds.Relations[0])[0]; telegram_row[e.SubItem - 1] = frm.CurrentValue; } }