private void btnResetAll_Click(object sender, EventArgs e) { var res = MessageBox.Show("Reset configuration\nAre you sure ?", "Reset configuration", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); if (res == DialogResult.OK) { vJoyManager.Config.CurrentControlSet.RawOutputBitMap.Clear(); for (int i = 0; i < 16; i++) { var db = new RawOutputDB(); db.MappedRawOutputBit = new List <int>(1) { i }; vJoyManager.Config.CurrentControlSet.RawOutputBitMap.Add(db); } FillPanelWithChkBox(); RefresList(); } }
private void btnResetAll_Click(object sender, EventArgs e) { var res = MessageBox.Show("Reset configuration\nAre you sure ?", "Reset configuration", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); if (res == DialogResult.OK) { SelectedGameOutputBit = -1; EditedControlSet.RawOutputDBs.Clear(); for (int i = 0; i < OutputsManager.MAXOUTPUTS; i++) { var db = new RawOutputDB(); db.MappedRawOutputBit = new List <int>(1) { i }; EditedControlSet.RawOutputDBs.Add(db); } FillPanelWithChkBox(); RefresListOfOptions(); } }