コード例 #1
0
        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);
        }
コード例 #2
0
 private WebServiceUtil()
 {
     m_logger      = LoggerUtil.GetAppWideLogger();
     m_authStorage = PlatformTypes.New <IAuthenticationStorage>();
 }
コード例 #3
0
 public FlickrOAuthProvider(IAuthenticationStorage authenticationStorage)
 {
     _authenticationStorage = authenticationStorage;
 }
コード例 #4
0
 public DaysService(IZohoClient zohoClient, IAuthenticationStorage auth, IJobService jobService)
 {
     this.zohoClient = zohoClient;
     this.auth = auth;
     this.jobService = jobService;
 }
コード例 #5
0
 public FlickrAuthenticationProvider(IAuthenticationStorage authenticationStorage)
 {
     _authenticationStorage = authenticationStorage;
 }
コード例 #6
0
 public FlickrFactory(IAuthenticationStorage authenticationStorage)
 {
     _authenticationStorage = authenticationStorage;
 }
コード例 #7
0
 public FlickrFactory(IAuthenticationStorage authenticationStorage)
 {
     _authenticationStorage = authenticationStorage;
 }