コード例 #1
0
        /// <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);
        }
コード例 #2
0
        private IObservable <Unit> SaveAccount(Firebase.Auth.FirebaseAuth firebaseAuth)
        {
            string json = JsonConvert.SerializeObject(firebaseAuth);

            return(_localStorageService.Set(FIREBASE_AUTH_JSON_KEY, json));
        }