Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 public ComboBoxItem(string displayName, string example, HIStyle style)
 {
     DisplayName = displayName;
     Example     = example;
     Style       = style;
 }