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