private void ApplyCalibration(Property.CalibrationPreference calPref, string calString) { // Load calibration settings switch (calPref) { case Property.CalibrationPreference.Default: device.SetCalibration(Calibrations.CalibrationPreset.Default); break; case Property.CalibrationPreference.More: device.SetCalibration(Calibrations.CalibrationPreset.Modest); break; case Property.CalibrationPreference.Extra: device.SetCalibration(Calibrations.CalibrationPreset.Extra); break; case Property.CalibrationPreference.Minimal: device.SetCalibration(Calibrations.CalibrationPreset.Minimum); break; case Property.CalibrationPreference.Raw: device.SetCalibration(Calibrations.CalibrationPreset.None); break; case Property.CalibrationPreference.Custom: CalibrationStorage calStor = new CalibrationStorage(calString); device.SetCalibration(calStor.ProCalibration); device.SetCalibration(calStor.NunchukCalibration); device.SetCalibration(calStor.ClassicCalibration); device.SetCalibration(calStor.ClassicProCalibration); device.SetCalibration(calStor.WiimoteCalibration); break; } }