コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public void InvokeLanguageSelected(string @value)
 {
     LanguageSelected?.Invoke(this, @value);
 }
コード例 #3
0
ファイル: LanguagesView.cs プロジェクト: vmtvv/FlexiMvvm
 private void OnLanguageSelected(string @value)
 {
     LanguageSelected?.Invoke(this, @value);
 }
コード例 #4
0
 private void OnLanguageSelected(LanguageSelectedEventArgs e)
 {
     LanguageSelected?.Invoke(this, e);
 }