Exemplo n.º 1
0
 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("非下拉列表,没有值串映射");
             }
         }
     }
 }
Exemplo n.º 2
0
 private void editMapBtn_Click(object sender, EventArgs e)
 {
     item_temp.ValueStringMap = UpdateValueStringMapBox.UpdateValueStringMap(item_temp.ValueStringMap);
     if (item_temp.ValueStringMap != null)
     {
         //断点测试
         return;
     }
 }