public void UpdateUI() { _lLabel.SetText(Controller.GetLanguage()["LeftStickSettings"]); _rLabel.SetText(Controller.GetLanguage()["RightStickSettings"]); _lSpeedSlider.SetText(Controller.GetLanguage()["LeftStickSpeed"]); _rSpeedSlider.SetText(Controller.GetLanguage()["RightStickSpeed"]); _lStickAssignment.SetText(Controller.GetLanguage()["AssignStick"]); _rStickAssignment.SetText(Controller.GetLanguage()["AssignStick"]); _lDynamicSensitivity.SetText(Controller.GetLanguage()["StickDynamicSens"]); _lDynamicSensitivity.SetChecked(Controller.GetProfile().LeftThumbStickAcceleration); _rDynamicSensitivity.SetText(Controller.GetLanguage()["StickDynamicSens"]); _rDynamicSensitivity.SetChecked(Controller.GetProfile().RightThumbStickAcceleration); _lMouseMove.SetText(Controller.GetLanguage()["StickActionMouseMove"]); _lArrows.SetText(Controller.GetLanguage()["StickActionArrows"]); _rMouseMove.SetText(Controller.GetLanguage()["StickActionMouseMove"]); _rArrows.SetText(Controller.GetLanguage()["StickActionArrows"]); ApplyProfile(Controller.GetProfile()); }
public void UpdateUI() { List <Profile> currentProfiles = Controller.GetAllProfiles(); if (_profileList.ComboBoxItem.GetListContent().Count != currentProfiles.Count) { var profiles = _profileList.ComboBoxItem.GetListContent(); foreach (var p in profiles) { _profileList.ComboBoxItem.RemoveItem(p); } foreach (var profile in currentProfiles) { _profileList.ComboBoxItem.AddItem(Items.GetListItem(profile.Name)); } } _profileList.SetCurrentIndex( Controller.GetAllProfiles().Select(p => p.Name).ToList().IndexOf(Controller.GetProfile().Name)); _autoLaunchAppCheckBox.SetText(Controller.GetLanguage()["SetsAutoLaunch"]); _startMinimizedCheckBox.SetText(Controller.GetLanguage()["SetsStartMinimized"]); _autoStartCheckBox.SetText(Controller.GetLanguage()["SetsAutoStart"]); _languageList.SetText(Controller.GetLanguage()["SetsLanguage"]); _profileList.SetText(Controller.GetLanguage()["SetsProfile"]); _miMode0.SetText(Controller.GetLanguage()["SetsIMode0"]); _miMode1.SetText(Controller.GetLanguage()["SetsIMode1"]); _miMode2.SetText(Controller.GetLanguage()["SetsIMode2"]); _inputModeList.SetText(Controller.GetLanguage()["SetsInput"]); _inputModeList.SetCurrentIndex(_inputModeList.GetCurrentIndex()); _headerTitle.SetText(Controller.GetLanguage()["SetsSectionsCommon"]); _headerProfile.SetText(Controller.GetLanguage()["SetsSectionsProfile"]); _headerLocale.SetText(Controller.GetLanguage()["SetsSectionsLocalization"]); }