public ExcelExportViewModel(IRepository <IEntry> repository, ISkyDriveService skyDrive, ILoggingService log, IIAPService iap) { if (repository == null) { throw new ArgumentNullException("repository"); } _repository = repository; if (skyDrive == null) { throw new ArgumentNullException("skyDrive"); } _skyDriveService = skyDrive; if (log == null) { throw new ArgumentNullException("log"); } _log = log; if (iap == null) { throw new ArgumentNullException("iap"); } _iapService = iap; ExportCommand = new RelayCommand(CsvExport); }
public SkyDriveViewModel() : base() { _skyDriveService = App.Container.GetInstance <ISkyDriveService>(); _skyDriveService.Initialized += OnInitialized; _skyDriveService.Uploaded += OnUploaded; _skyDriveService.Downloaded += OnDownloaded; }
public SharingDataModel( AppSettings appSettings, INotificationsService notificationsService, ISkyDriveService skyDriveService) { _appSettings = appSettings; _notificationsService = notificationsService; _skyDriveService = skyDriveService; ShareMethods = new List<ShareMethodDataModel> { new ShareMethodDataModel {Method = Method.Email, Name = UIStrings.Sharing_Email}, new ShareMethodDataModel {Method = Method.SocialNetworks, Name = UIStrings.Sharing_Social} }; }
public SharingDataModel( AppSettings appSettings, INotificationsService notificationsService, ISkyDriveService skyDriveService) { _appSettings = appSettings; _notificationsService = notificationsService; _skyDriveService = skyDriveService; ShareMethods = new List <ShareMethodDataModel> { new ShareMethodDataModel { Method = Method.Email, Name = UIStrings.Sharing_Email }, new ShareMethodDataModel { Method = Method.SocialNetworks, Name = UIStrings.Sharing_Social } }; }