Esempio n. 1
0
 private void FillItemComboBoxes(ComboBox[] combos, DPadValue[] values, bool enable)
 {
     for (var i = 0; i < combos.Length; i++)
     {
         combos[i].SelectedItem = DPadItem.From(values[i]);
         combos[i].Enabled      = enable;
     }
 }
Esempio n. 2
0
        private void mDPadConfig_Click(object sender, EventArgs e)
        {
            var items   = DPadItem.All();
            var presets = DPadPreset.All();
            var config  = _settings.PatcherOptions.DPadConfig;

            DPadForm form = new DPadForm(presets, items, config);

            if (form.ShowDialog() == DialogResult.OK)
            {
                config.State = form.State;
                config.Pad   = form.Selected;
            }
        }