public MainWindowViewModel( IAuthenticationStorage authenticationStorage, IDialogService dialogService, IDaysService daysService, ILoginController loginController, IMonthPickerViewModel monthPickerViewModel) { this.dialogService = dialogService; this.daysService = daysService; this.loginController = loginController; this.authenticationStorage = authenticationStorage; MonthPickerViewModel = monthPickerViewModel; MonthPickerViewModel.MonthChanged += MonthPickerViewModelOnMonthChanged; LoginCommand = new RelayCommand(async () => await Login(), () => !IsLoggedIn); LogoutCommand = new RelayCommand(Logout, () => IsLoggedIn); FillTimeCommand = new RelayCommand(FillTime); FillSingleDayCommand = new RelayCommand<IDayViewModel>(FillSingleDay); Days = daysService.GetDays(MonthPickerViewModel.CurrentDate); }
private WebServiceUtil() { m_logger = LoggerUtil.GetAppWideLogger(); m_authStorage = PlatformTypes.New <IAuthenticationStorage>(); }
public FlickrOAuthProvider(IAuthenticationStorage authenticationStorage) { _authenticationStorage = authenticationStorage; }
public DaysService(IZohoClient zohoClient, IAuthenticationStorage auth, IJobService jobService) { this.zohoClient = zohoClient; this.auth = auth; this.jobService = jobService; }
public FlickrAuthenticationProvider(IAuthenticationStorage authenticationStorage) { _authenticationStorage = authenticationStorage; }
public FlickrFactory(IAuthenticationStorage authenticationStorage) { _authenticationStorage = authenticationStorage; }