private void gridView_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { int columnIndex = e.ColumnIndex; if (columnIndex == 1) { var item = modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items[e.RowIndex]; UpdateMemoryAddressBox.UpdateMemoryAddress(item.Address); LoadItems(); } else if (columnIndex == 8) { var item = modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items[e.RowIndex]; if (item.FormStyle == "下拉列表") { UpdateValueStringMapBox.UpdateValueStringMap(item.ValueStringMap); LoadItems(); } else { MessageBox.Show("非下拉列表,没有值串映射"); } } } }
private void editAddressBtn_Click(object sender, EventArgs e) { item_temp.Address = UpdateMemoryAddressBox.UpdateMemoryAddress(item_temp.Address); if (item_temp.Address != null) { addressTxtbox.Text = item_temp.Address.GetAddrString(); } }