/// <summary> Called when [language selected]. </summary> /// <param name="languageViewModel">The languageViewModel.</param> private async void OnLanguageSelected(object languageViewModel) { await _navigator.PopToRootAsync(); if (_locationsViewModel != null) { // set the new selected location (if there is a locationsViewModel, if not there was only the language selection opened) _selectedLocation = _locationsViewModel.SelectedLocation; _locationsViewModel = null; } LanguageSelected?.Invoke(this, EventArgs.Empty); // refresh every page (this is for the case, that we changed the language, while the main view is already displayed. Therefore we need to update the pages, since the location or language has most likely changed) RefreshAll(true); }
public void InvokeLanguageSelected(string @value) { LanguageSelected?.Invoke(this, @value); }
private void OnLanguageSelected(string @value) { LanguageSelected?.Invoke(this, @value); }
private void OnLanguageSelected(LanguageSelectedEventArgs e) { LanguageSelected?.Invoke(this, e); }