/// <summary> /// При нажатии кнопки Настройки /// </summary> private async void OnButtonSettingsClicked(object sender, EventArgs e) { var settingsPopup = new SettingsPopupPage((GlobalSettings)settings.Clone()); NewGlobalSettingsEvent += (eventSender, settings) => { this.settings = settings; securityService.ResetConnection(); localStorageService.Set(typeof(GlobalSettings).Name, settings); }; await PopupNavigation.Instance.PushAsync(settingsPopup); }
private IObservable <Unit> SaveAccount(Firebase.Auth.FirebaseAuth firebaseAuth) { string json = JsonConvert.SerializeObject(firebaseAuth); return(_localStorageService.Set(FIREBASE_AUTH_JSON_KEY, json)); }