示例#1
0
 private VillageType?GetSelectedVillageTypeFilter()
 {
     if (VillageTypeInput.Combobox.SelectedIndex > 0)
     {
         return(VillageTypeHelper.GetVillageType(VillageTypeInput.Combobox.SelectedIndex));
     }
     return(null);
 }
示例#2
0
 private void GridExVillage_EndCustomEdit(object sender, EndCustomEditEventArgs e)
 {
     if (e.Column == _columns[VillageFields.Type])
     {
         int selected = _villageTypeBox.SelectedIndex;
         if (selected > 0)
         {
             e.Value = (int)VillageTypeHelper.GetVillageType(selected);
         }
         else
         {
             e.Value = null;
         }
         e.DataChanged = true;
     }
 }