コード例 #1
0
ファイル: BackupService.cs プロジェクト: snehansh/MoneyFox
        public async Task Login()
        {
            await backupManager.Login();

            settingsFacade.IsLoggedInToBackupService = true;
            settingsFacade.IsBackupAutouploadEnabled = true;
        }
コード例 #2
0
 private void Login()
 {
     backupManager.Login();
     SettingsHelper.IsLoggedInToBackupService = true;
     RaisePropertyChanged(nameof(IsLoggedIn));
     Loaded();
 }
コード例 #3
0
ファイル: BackupViewModel.cs プロジェクト: DSayers21/MoneyFox
        private async void Login()
        {
            //if (!connectivity.IsConnected)
            //{
            //    await dialogService.ShowMessage(Strings.NoNetworkTitle, Strings.NoNetworkMessage);
            //}

            await backupManager.Login();

            settingsManager.IsLoggedInToBackupService = true;
            RaisePropertyChanged(nameof(IsLoggedIn));
            Loaded();
        }
コード例 #4
0
        public async Task <OperationResult> Login()
        {
            var result = await backupManager.Login();

            if (result.Success)
            {
                settingsFacade.IsLoggedInToBackupService = true;
                settingsFacade.IsBackupAutouploadEnabled = true;
                return(OperationResult.Succeeded());
            }

            return(result);
        }
コード例 #5
0
        private async void Login()
        {
            if (!connectivity.IsConnected)
            {
                await dialogService.ShowMessage(Strings.NoNetworkTitle, Strings.NoNetworkMessage);
            }

            await backupManager.Login();

            settingsManager.IsLoggedInToBackupService = true;
            // ReSharper disable once ExplicitCallerInfoArgument
            RaisePropertyChanged(nameof(IsLoggedIn));
            Loaded();
        }