Пример #1
0
 private void lvComboList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     data.ComboInfo ci = (data.ComboInfo)lvComboList.SelectedItem;
     if (ci != null)
     {
         SelectionChanged?.Invoke(this, new EventArgs());
     }
 }
Пример #2
0
 public int GetSelectedId()
 {
     data.ComboInfo ci = (data.ComboInfo)lvComboList.SelectedItem;
     if (ci == null)
     {
         return(-1);
     }
     return(ci.comboId);
 }