private void AddActionToList(HotkeyType hotkeyType) { ListViewItem lvi = new ListViewItem() { Text = hotkeyType.GetLocalizedDescription(), ImageKey = hotkeyType.ToString() }; lvActions.Items.Add(lvi); }
private void AddActionToList(HotkeyType hotkeyType) { string text; if (hotkeyType == HotkeyType.None) { text = Resources.ActionsToolbarEditForm_Separator; } else { text = hotkeyType.GetLocalizedDescription(); } ListViewItem lvi = new ListViewItem() { Text = text, ImageKey = hotkeyType.ToString() }; lvActions.Items.Add(lvi); }