private void Language_OnCheckedChanged(object sender, CheckedChangedEventArgs e) { if (e.Value && sender is RadioButton button) { UIFunctions.SetLocale((string)button.Value); SetupButton.Text = AppResources.SetupButton; SelectLanguageLabel.Text = AppResources.SelectLanguage; } }