Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public SkyDriveViewModel()
     : base()
 {
     _skyDriveService              = App.Container.GetInstance <ISkyDriveService>();
     _skyDriveService.Initialized += OnInitialized;
     _skyDriveService.Uploaded    += OnUploaded;
     _skyDriveService.Downloaded  += OnDownloaded;
 }
Exemplo n.º 3
0
 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}
                        };
 }
Exemplo n.º 4
0
 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
         }
     };
 }