示例#1
0
        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
        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();
        }