public async Task Login() { await backupManager.Login(); settingsFacade.IsLoggedInToBackupService = true; settingsFacade.IsBackupAutouploadEnabled = true; }
private void Login() { backupManager.Login(); SettingsHelper.IsLoggedInToBackupService = true; RaisePropertyChanged(nameof(IsLoggedIn)); Loaded(); }
private async void Login() { //if (!connectivity.IsConnected) //{ // await dialogService.ShowMessage(Strings.NoNetworkTitle, Strings.NoNetworkMessage); //} await backupManager.Login(); settingsManager.IsLoggedInToBackupService = true; RaisePropertyChanged(nameof(IsLoggedIn)); Loaded(); }
public async Task <OperationResult> Login() { var result = await backupManager.Login(); if (result.Success) { settingsFacade.IsLoggedInToBackupService = true; settingsFacade.IsBackupAutouploadEnabled = true; return(OperationResult.Succeeded()); } return(result); }
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(); }