Exemple #1
0
 public TabsController(ITabService tabService, ICategoryService categoryService, Cloudinary cloudinary, IWebHostEnvironment hostEnvironment)
 {
     this.tabService      = tabService;
     this.categoryService = categoryService;
     this.cloudinary      = cloudinary;
     this.hostEnvironment = hostEnvironment;
 }
        DocumentTabService(IDocumentTabUIContextLocatorProvider documentTabUIContextLocatorProvider, DocumentTreeView documentTreeView, ITabServiceProvider tabServiceProvider, IDocumentTabContentFactoryService documentTabContentFactoryService, IDocumentTabServiceSettings documentTabServiceSettings, IWpfFocusService wpfFocusService, IDecompilationCache decompilationCache, [ImportMany] IEnumerable <Lazy <IReferenceDocumentTabContentProvider, IReferenceDocumentTabContentProviderMetadata> > referenceDocumentTabContentProviders, [ImportMany] IEnumerable <Lazy <IDefaultDocumentTabContentProvider, IDefaultDocumentTabContentProviderMetadata> > defaultDocumentTabContentProviders, [ImportMany] IEnumerable <Lazy <IReferenceHandler, IReferenceHandlerMetadata> > referenceHandlers)
        {
            Settings = documentTabServiceSettings;
            this.documentTabUIContextLocatorProvider = documentTabUIContextLocatorProvider;
            this.documentTabContentFactoryService    = documentTabContentFactoryService;
            this.wpfFocusService    = wpfFocusService;
            this.decompilationCache = decompilationCache;
            this.referenceDocumentTabContentProviders = referenceDocumentTabContentProviders.OrderBy(a => a.Metadata.Order).ToArray();
            this.defaultDocumentTabContentProviders   = defaultDocumentTabContentProviders.OrderBy(a => a.Metadata.Order).ToArray();
            this.referenceHandlers = referenceHandlers.OrderBy(a => a.Metadata.Order).ToArray();
            var tvElem = documentTreeView.TreeView.UIObject;

            tvElem.IsVisibleChanged += TreeView_IsVisibleChanged;
            isTreeViewVisible        = tvElem.IsVisible;
            DocumentTreeView         = documentTreeView;
            DocumentTreeView.DocumentService.CollectionChanged += DocumentService_CollectionChanged;
            DocumentTreeView.SelectionChanged     += DocumentTreeView_SelectionChanged;
            DocumentTreeView.NodesTextChanged     += DocumentTreeView_NodesTextChanged;
            DocumentTreeView.NodeActivated        += DocumentTreeView_NodeActivated;
            DocumentTreeView.TreeView.NodeRemoved += TreeView_NodeRemoved;
            tabService      = tabServiceProvider.Create();
            TabGroupService = tabService.Create(new TabGroupServiceOptions(MenuConstants.GUIDOBJ_DOCUMENTS_TABCONTROL_GUID));
            TabGroupService.TabSelectionChanged      += TabGroupService_TabSelectionChanged;
            TabGroupService.TabGroupSelectionChanged += TabGroupService_TabGroupSelectionChanged;
        }
 public ItemsController(IItemService itemService, ITabService tabService, Cloudinary cloudinary, IWebHostEnvironment hostEnvironment)
 {
     this.itemService     = itemService;
     this.tabService      = tabService;
     this.cloudinary      = cloudinary;
     this.hostEnvironment = hostEnvironment;
 }
Exemple #4
0
 public ApplicationInstallationService(IConnectionFactory connectionFactory, ISqlServerRepository sqlServerRepository, IHashConversionService hashConversionService, ITabService tabService, IDatabaseDeployer databaseDeployer, TextLogger textLogger)
 {
     this.connectionFactory = connectionFactory;
     this.sqlRepository     = sqlServerRepository;
     this.hashConverter     = hashConversionService;
     this.tabService        = tabService;
     this.databaseDeployer  = databaseDeployer;
     this.logger            = textLogger;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
        /// </summary>
        public MainWindowViewModel(IUIVisualizerService uiVisualizerService, ITabService tabService)
        {
            _uiVisualizerService = uiVisualizerService;
            _tabService = tabService;

            _timer.Tick += OnTimerTick;
            _timer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            _timer.Start();

            AddTab = new TaskCommand(OnAddTabExecuteAsync);
        }
Exemple #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
        /// </summary>
        public MainWindowViewModel(IUIVisualizerService uiVisualizerService, ITabService tabService)
        {
            _uiVisualizerService = uiVisualizerService;
            _tabService          = tabService;

            _timer.Tick    += OnTimerTick;
            _timer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            _timer.Start();

            AddTab = new Command(OnAddTabExecute);
        }
Exemple #7
0
        public MainViewModel(IUIVisualizerService uiVisualizerService, ITabService tabService)
        {
            Argument.IsNotNull(() => uiVisualizerService);
            Argument.IsNotNull(() => tabService);

            _uiVisualizerService = uiVisualizerService;
            _tabService          = tabService;

            _timer.Tick    += OnTimerTick;
            _timer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            _timer.Start();

            AddTab = new TaskCommand(OnAddTabExecuteAsync);

            Title = "View model lifetime demo";
        }
Exemple #8
0
        public ImportUtilities(
            IRepository <HtmlWidget> htmlWidgetRepository,
            IRepository <Schedule> scheduleRepository,
            IRepository <Condition> conditionRepository,
            IRepository <EntityCondition> entityConditionRepository,
            IRepository <ConditionGroup> conditionGroupRepository,
            IRepository <ConditionStatement> conditionStatementRepository,
            IRepository <EntityWidgetMapping> widgetMappingRepository,
            IRepository <ProductOverride> productOverrideRepository,
            IRepository <SpecificationAttribute> specificationAttributeRepository,
            IRepository <ProductAttributeValue> productAttributeValueRepository,
            ISpecificationAttributeService specificationAttributeService,
            ITabService tabService,
            IConditionService conditionService,
            IEntityConditionService entityConditionService,
            IEntityMappingService entityMappingService,
            ILogger logger,
            IRepository <Product> productRepository,
            IProductAttributeService productAttributeService,
            INopDataProvider nopDbContext)
        {
            _htmlWidgetRepository             = htmlWidgetRepository;
            _scheduleRepository               = scheduleRepository;
            _conditionRepository              = conditionRepository;
            _entityConditionRepository        = entityConditionRepository;
            _conditionGroupRepository         = conditionGroupRepository;
            _conditionStatementRepository     = conditionStatementRepository;
            _widgetMappingRepository          = widgetMappingRepository;
            _productOverrideRepository        = productOverrideRepository;
            _specificationAttributeRepository = specificationAttributeRepository;
            _productAttributeValueRepository  = productAttributeValueRepository;
            _specificationAttributeService    = specificationAttributeService;
            _tabService             = tabService;
            _conditionService       = conditionService;
            _entityConditionService = entityConditionService;
            _entityMappingService   = entityMappingService;
            _logger                  = logger;
            _productRepository       = productRepository;
            _productAttributeService = productAttributeService;
            _nopDbContext            = nopDbContext;

            return;
        }
Exemple #9
0
 public TabController(IMapper mapper, ITabService tabService)
 {
     _mapper     = mapper;
     _tabService = tabService;
 }
Exemple #10
0
 public ToolWindowService(ITabService tabService)
 {
     this.tabService = tabService;
 }
		public ToolWindowService(ITabService tabService) {
			this.tabService = tabService;
		}
Exemple #12
0
 public TabsController(ITabService tabService, IItemService itemService)
 {
     this.tabService  = tabService;
     this.itemService = itemService;
 }
Exemple #13
0
 public TabController(ITabService tabService)
 {
     _tabService = tabService;
 }
Exemple #14
0
 public ResultController(IScheduleResultService scheduleResultService, ITabService tabService)
 {
     _scheduleResultService = scheduleResultService;
     _tabService            = tabService;
 }
Exemple #15
0
 public TabController(ITabService service)
 {
     this.service = service;
 }
 public CategoriesController(ICategoryService categoryService, ITabService tabService)
 {
     this.categoryService = categoryService;
     this.tabService      = tabService;
 }
Exemple #17
0
 public TabApiController(ITabService tabService, IScheduleResultService scheduleResultService)
 {
     _tabService            = tabService;
     _scheduleResultService = scheduleResultService;
 }