private void comboBoxStyle_SelectedIndexChanged(object sender, EventArgs e) { if (listViewFixes.Items.Count < 0) { return; } // Is this using ref passing? o.O HIStyle currentStyle = _hearingImpaired.Config.Style; if ((int)currentStyle != comboBoxStyle.SelectedIndex) { currentStyle = (HIStyle)comboBoxStyle.SelectedIndex; _hearingImpaired.Config.Style = currentStyle; GeneratePreview(); } }
public ComboBoxItem(string displayName, string example, HIStyle style) { DisplayName = displayName; Example = example; Style = style; }