void v_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) { mSelectedItem = e.Item.Text; if (ListItemSelected != null) { ListItemSelected.Invoke(this, null); } }
void lb_SelectedIndexChanged(object sender, EventArgs e) { ListBox lb = sender as ListBox; if (lb != null && lb.SelectedItem != null) { mSelectedItem = lb.SelectedItem.ToString(); if (ListItemSelected != null) { ListItemSelected.Invoke(this, null); } } }
internal void SelectionFromChar(char toSelect, ListItemSelected onSelect) { if (m_useCharactersNextToItems) { List<char> listOfLettersUsed = GetListOfLettersUsed(); if (listOfLettersUsed.Contains(toSelect)) { m_cursorPosition = listOfLettersUsed.IndexOf(toSelect); onSelect(m_itemList[m_cursorPosition]); } } }
public ListSelectionItemSelectedByChar(char selectChar, ListItemSelected onSelect) { m_char = selectChar; m_onSelect = onSelect; }
public ListSelectionItemSelected(ListItemSelected onSelected) { m_onSelected = onSelected; }