/// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public AddPluginViewModel(IZipService zipService, IFileService fileService, ILiveWriterService liveWriterService)
 {
     _zipService = zipService;
     _fileService = fileService;
     _liveWriterService = liveWriterService;
     CanAdd = AppHelper.LiveWriterInstalled;
 }
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public AddPluginViewModel(IZipService zipService, IFileService fileService, ILiveWriterService liveWriterService, IMessageService messageService)
 {
     _zipService = zipService;
     _fileService = fileService;
     _liveWriterService = liveWriterService;
     _messageService = messageService;
     CanAdd = AppHelper.LiveWriterInstalled && AppHelper.IsRunningAsAdmin();
 }
示例#3
0
 public UploadController(
     IProductService productService,
     IBlobService blobService,
     IZipService zipService)
 {
     this.productService = productService;
     this.blobService = blobService;
     this.zipService = zipService;
 }
示例#4
0
        public FileHandlerActor(IInjector injector)
        {
            _fileReader    = injector.Get <IDbFileReaderService>();
            _googleService = injector.Get <IGDriveService>();
            _zipService    = injector.Get <IZipService>();
            _cluster       = Cluster.Get(Context.System);

            ReceiveAsync <ImportFile>(ImportDriveFile);
            Receive <IActorRef>(e => _eventStoreActor = e);
        }
示例#5
0
 public RectangleController(IRectangleService rectangleService,
                            IGoogleMapsService googleMapsService,
                            IPdfService pdfService,
                            IZipService zipService)
 {
     _rectangleService  = rectangleService ?? throw new ArgumentNullException(nameof(rectangleService));
     _googleMapsService = googleMapsService ?? throw new ArgumentNullException(nameof(googleMapsService));
     _pdfService        = pdfService ?? throw new ArgumentNullException(nameof(pdfService));
     _zipService        = zipService ?? throw new ArgumentNullException(nameof(zipService));
 }
 public ReportingController(
     IZipService zipService,
     ILogger logger,
     IList <IValidationReport> validationReports,
     IList <IModelReport> esfReports)
 {
     _zipService        = zipService;
     _logger            = logger;
     _validationReports = validationReports;
     _esfReports        = esfReports;
 }
示例#7
0
 public ProjectService(
     IFolderService folderService,
     IZipService zipService,
     ISeasonPackRepository seasonPackLoader,
     ILevelRepostory levelLoader)
 {
     this.folderService    = folderService;
     this.zipService       = zipService;
     this.seasonPackLoader = seasonPackLoader;
     this.levelLoader      = levelLoader;
 }
        public DashboardViewModel(INavigation navigation, Type page)
        {
            UserModel user = Utils.DeserializeFromJson <UserModel>(Application.Current.Properties["UserData"].ToString());

            _pageService      = new PageService();
            _navigation       = navigation;
            _page             = page;
            _documentsService = new DocumentsService(user);
            _streamservice    = new StreamService(user);
            _zipService       = new ZipService();
            Device.BeginInvokeOnMainThread(async() => DocsModel = await GetDocsAsync());
        }
示例#9
0
 public ReportingController(
     IEnumerable <IModelReport> ncsReports,
     IZipService zipService,
     IFilenameService filenameService,
     [KeyFilter(PersistenceStorageKeys.DctAzureStorage)] IFileService dctFileService,
     [KeyFilter(PersistenceStorageKeys.DssAzureStorage)] IFileService dssFileService)
 {
     _ncsReports      = ncsReports;
     _zipService      = zipService;
     _filenameService = filenameService;
     _dctFileService  = dctFileService;
     _dssFileService  = dssFileService;
 }
示例#10
0
 public bfgWorker(string name, string route, string[] tags, IAppServiceRegistry registry, IAppServiceDiscovery services, IZipService zipService, IAppStatusServiceClient appStatus, IRxnManager <IRxn> rxnManager, IUpdateServiceClient updateService, IAppStatusCfg cfg, Func <ITestArena[]> arena)
 {
     _registry      = registry;
     _services      = services;
     _zipService    = zipService;
     _appStatus     = appStatus;
     _rxnManager    = rxnManager;
     _updateService = updateService;
     _cfg           = cfg;
     _arena         = arena;
     Name           = name;
     Route          = route;
     Info.Add(bfgTagWorkflow.WorkerTag, tags.ToStringEach());
 }
 public EntryPoint(
     ILogger logger,
     IExcelFileService excelService,
     IReportsDependentDataPopulationService reportsDependentDataPopulationService,
     IZipService zipService,
     IList <IReport> reports,
     IReportServiceContextKeysMutator reportServiceContextKeysMutator)
 {
     _logger       = logger;
     _excelService = excelService;
     _reportsDependentDataPopulationService = reportsDependentDataPopulationService;
     _zipService = zipService;
     _reports    = reports;
     _reportServiceContextKeysMutator = reportServiceContextKeysMutator;
 }
示例#12
0
 public DataService(Func <ComicReaderDbContext> dbContext,
                    IFileService fileService,
                    IZipService zipService,
                    IParserService parserService
                    )
 {
     _dbContext     = dbContext;
     _fileService   = fileService;
     _zipService    = zipService;
     _parserService = parserService;
     _cacheFolder   = Path.Combine(Environment.GetFolderPath(
                                       Environment.SpecialFolder.ApplicationData),
                                   "ComicReader.Net",
                                   "cache");
 }
示例#13
0
 public ReportingController(
     ILogger logger,
     IValidationResultReport resultReport,
     IList <IValidationReport> validationReports,
     IList <IModelReport> easReports,
     IZipService zipService,
     IFileNameService fileNameService)
 {
     _logger            = logger;
     _resultReport      = resultReport;
     _validationReports = validationReports;
     _easReports        = easReports;
     _zipService        = zipService;
     _fileNameService   = fileNameService;
 }
示例#14
0
 public ThumbnailCacheService(IZipService zipService,
                              IImageService imageService,
                              IDataService dataService)
 {
     _zipService   = zipService;
     _imageService = imageService;
     _dataService  = dataService;
     _cacheFolder  = Path.Combine(Environment.GetFolderPath(
                                      Environment.SpecialFolder.ApplicationData),
                                  "ComicReader.Net",
                                  "cache");
     if (!Directory.Exists(_cacheFolder))
     {
         Directory.CreateDirectory(_cacheFolder);
     }
     _thumbnailCache = new Dictionary <int, byte[]>();
 }
示例#15
0
        public LoadServiceInvoViewModel(IEventAggregator eventAggregator, ReportsController reportsController, IExcelSpecificationLoader excelSpecificationLoader, IZipService zipService, IServiceZipsService serviceZipService)
        {
            #region infrastructure

            ReportsTabItemHeader = "Загрузка инфо для сервиса";
            MonthesList          = Monthes.GetMonthesList();
            CompanyList          = ServiceCompanies.GetServiceCompaniesList();
            YearList             = new List <int>();
            for (var i = 2015; i <= DateTime.Now.Year; i++)
            {
                YearList.Add(i);
            }
            LoadSpecificationCommand = new DelegateCommand(LoadSpecification);
            _reportsController       = reportsController;
            #endregion infrastructure

            #region events
            _eventAggregator = eventAggregator;
            eventAggregator.GetEvent <OpenFileEvent>().Subscribe(GetFilename);
            #endregion events

            #region zips
            ServiceZipList          = new ObservableCollection <ServiceZipDetailsSet>();
            EmptyZipsList           = new ObservableCollection <ZipSet>();
            ZipList                 = new List <ZipSet>();
            NewZipList              = new List <ZipSet>();
            MainZipList             = new List <string>();
            IsServiceBusy           = false;
            RefreshEmptyListCommand = new DelegateCommand(RefreshEmptyList);
            AddServiceZipsCommand   = new DelegateCommand(AddServiceZips);
            SaveEmptyZipsCommand    = new DelegateCommand(SaveEmptyZips);
            #endregion zips

            #region services
            _excelSpecificationLoader = excelSpecificationLoader;
            _zipService        = zipService;
            _serviceZipService = serviceZipService;
            #endregion services

            #region workers
            _worker                     = new BackgroundWorker();
            _worker.DoWork             += AddServiceZipsWork;
            _worker.RunWorkerCompleted += AddServiceZipsWork_Completed;
            #endregion workers
        }
        public CreatePackageViewModel(IZipService zipService, IFileService fileService, IMessageService messageService)
        {
            _zipService = zipService;
            _fileService = fileService;
            _messageService = messageService;

            Messenger.Default.Register<NotificationMessage>(this, m =>
            {
                if (m.Notification.Equals(AppHelper.RemoveFileMsg))
                {
                    Files.Remove(m.Sender as FileViewModel);
                }
                else if (m.Notification.Equals(AppHelper.SetPluginFileMsg))
                {
                    RaisePropertyChanged(() => IsValidPackage);
                }
            });
        }
 public EstimatorService(ISettingsService settingsService,
                         IEmailExchangeService emailExchangeService,
                         IParsingService parsingService,
                         IExcelService excelService,
                         IWordService wordService,
                         IPowerPointService presentService,
                         IFileService fileService, IImageService imageService, IZipService zipService)
 {
     _settingsService      = settingsService;
     _emailExchangeService = emailExchangeService;
     _parsingService       = parsingService;
     _excelService         = excelService;
     _wordService          = wordService;
     _presentService       = presentService;
     _fileService          = fileService;
     _imageService         = imageService;
     _zipService           = zipService;
 }
示例#18
0
        public LibrariesSettingsViewModel(IWindowService windowService,
                                          IUserConfig config,
                                          IDataService dataService,
                                          IZipService zipService,
                                          ITaskSchedulerService taskSchedulerService)
        {
            _windowService        = windowService;
            _dataService          = dataService;
            _zipService           = zipService;
            _taskSchedulerService = taskSchedulerService;
            _userConfig           = config;

            Libraries = new ObservableCollection <string>(config.Libraries);

            AddCommand    = new DelegateCommand(AddCommandExecute);
            RemoveCommand = new DelegateCommand(RemoveCommandExecute, RemoveCommandCanExecute);
            SyncCommand   = new DelegateCommand(SyncCommandExecute, SyncCommandCanExecute);
        }
示例#19
0
        public static string ClientId = bfgCfg.Detect().Id.Split('-').FirstOrDefault(); //get from cfg file if exists

        public bfgWorkerManager(bfgCluster workerCluster, IObservable <StartUnitTest[]> cfg, SystemStatusPublisher systemStatus, IResolveTypes resolver, IRxnManager <IRxn> eventManager, IAppStatusCfg appStatusCfg, IAppServiceRegistry appServiceRegistry, IZipService zipService, IAppStatusStore appCmds, IAppStatusServiceClient appStatus, IAppServiceDiscovery serviceDiscovery, IUpdateServiceClient appUpdates)
        {
            _workerCluster      = workerCluster;
            _cfg                = cfg;
            _resolver           = resolver;
            _eventManager       = eventManager;
            _appStatusCfg       = appStatusCfg;
            _appServiceRegistry = appServiceRegistry;
            _zipService         = zipService;
            _appCmds            = appCmds;
            _appStatus          = appStatus;
            _serviceDiscovery   = serviceDiscovery;
            _appUpdates         = appUpdates;

            systemStatus.Process(new AppStatusInfoProviderEvent()
            {
                ReporterName = nameof(bfgWorkerManager),
                Component    = "Status",
                Info         = WorkerManagerStatus
            }).Until();
        }
 public ZipsController(IZipService zipService)
 {
     _zipService = zipService;
 }
 public GfxPrepareService(IApplicationWorkFolder applicationWorkFolder, IZipService zipHelper)
 {
     this.applicationWorkFolder = applicationWorkFolder;
     this.zipHelper             = zipHelper;
 }
示例#22
0
        public MainViewModel(IImageService imageService, IZipService zipService)
        {
            ImageService = imageService;
            ZipService = zipService;

            MessengerInstance.Register<ChosenNewFileProceed>(this, OnChosenNewFileProceed);
        }
        public LoadServiceInvoViewModel(IEventAggregator eventAggregator, ReportsController reportsController, IExcelSpecificationLoader excelSpecificationLoader, IZipService zipService, IServiceZipsService serviceZipService)
        {
            #region infrastructure

            ReportsTabItemHeader = "Загрузка инфо для сервиса";
            MonthesList = Monthes.GetMonthesList();
            CompanyList = ServiceCompanies.GetServiceCompaniesList();
            YearList = new List<int>();
            for (var i = 2015; i <= DateTime.Now.Year; i++)
                YearList.Add(i);
            LoadSpecificationCommand = new DelegateCommand(LoadSpecification);
            _reportsController = reportsController;
            #endregion infrastructure

            #region events
            _eventAggregator = eventAggregator;
            eventAggregator.GetEvent<OpenFileEvent>().Subscribe(GetFilename);
            #endregion events

            #region zips
            ServiceZipList = new ObservableCollection<ServiceZipDetailsSet>();
            EmptyZipsList = new ObservableCollection<ZipSet>();
            ZipList = new List<ZipSet>();
            NewZipList = new List<ZipSet>();
            MainZipList = new List<string>();
            IsServiceBusy = false;
            RefreshEmptyListCommand = new DelegateCommand(RefreshEmptyList);
            AddServiceZipsCommand = new DelegateCommand(AddServiceZips);
            SaveEmptyZipsCommand = new DelegateCommand(SaveEmptyZips);
            #endregion zips

            #region services
            _excelSpecificationLoader = excelSpecificationLoader;
            _zipService = zipService;
            _serviceZipService = serviceZipService;
            #endregion services

            #region workers
            _worker = new BackgroundWorker();
            _worker.DoWork += AddServiceZipsWork;
            _worker.RunWorkerCompleted += AddServiceZipsWork_Completed;
            #endregion workers
        }        
示例#24
0
 public KmlFileReader(IKmlDocumentFactory kmlDocumentFactory, IZipService zipService)
 {
     _kmlDocumentFactory = kmlDocumentFactory;
     _zipService         = zipService;
 }