Пример #1
0
        public TextEditor(IDataphoria dataphoria, string designerID)
        {
            InitializeComponent();

            InitializeDocking();

            _designerID = designerID;

            _service = new DesignService(dataphoria, this);
            _service.OnModifiedChanged += NameOrModifiedChanged;
            _service.OnNameChanged     += NameOrModifiedChanged;
            _service.OnRequestLoad     += LoadData;
            _service.OnRequestSave     += SaveData;
            _service.LocateRequested   += LocateRequested;

            _textEdit.HelpRequested += FTextArea_HelpRequested;

            _textEdit.Document.HighlightingStrategy = GetHighlightingStrategy();
            _textEdit.DocumentChanged += DocumentChanged;
            TextEditInitialized(_textEdit, _textEdit.ActiveTextAreaControl);
            _textEdit.OnInitializeTextAreaControl += TextEditInitialized;
            _textEdit.BeginningFind         += BeginningFind;
            _textEdit.ReplacementsPerformed += ReplacementsPerformed;
            _textEdit.TextNotFound          += TextNotFound;

            UpdateLineNumberStatus();
            UpdateTitle();
        }
 public TaskService(IUnitOfWork uow) : base(uow)
 {
     _deviceService     = new DeviceService(uow);
     _montageService    = new MontageService(uow);
     _designService     = new DesignService(uow);
     _currentRepository = _db.TaskRepository;
 }
Пример #3
0
 public ReportsController(IReportService reportService, IMontageService montageService, IDesignService designService, IDeviceService deviceService)
 {
     _reportService  = reportService;
     _montageService = montageService;
     _designService  = designService;
     _deviceService  = deviceService;
 }
Пример #4
0
 public void InitializeService(IDataphoria dataphoria)
 {
     _service = new DesignService(dataphoria, this);
     _service.OnModifiedChanged += NameOrModifiedChanged;
     _service.OnNameChanged     += NameOrModifiedChanged;
     _service.OnRequestLoad     += RequestLoad;
     _service.OnRequestSave     += RequestSave;
 }
Пример #5
0
 public DesignsController(IDesignService service)
 {
     _designService = service;
     _mapper        = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap <DesignDTO, Design>();
         cfg.CreateMap <Design, DesignDTO>();
     })
                      .CreateMapper();
 }
Пример #6
0
 public DesignController(IUtilityService utilityservice, IDesignService designservice, IItemCategoryService itemcategoryservice, IItemSubCategoryService itemsubcategoryservice, IItemService itemservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService)
 {
     this._UtilityService         = utilityservice;
     this._DesignService          = designservice;
     this._ItemCategoryService    = itemcategoryservice;
     this._ItemSubCategoryService = itemsubcategoryservice;
     this._ItemService            = itemservice;
     this._IUserCredentialService = usercredentialservice;
     this._iIModuleService        = iIModuleService;
 }
Пример #7
0
        public DesignsController(IDesignService designService, IUserService userService, IMapper mapper, ILoggerFactory loggerFactory) : base(userService)
        {
            if (loggerFactory != null)
            {
                _logger = loggerFactory.CreateLogger("HomePassesController");
            }

            _designService = designService;
            _mapper        = mapper;
        }
Пример #8
0
        public DesignsController(IDesignService designService, IUserService userService, IOptions <AppSettings> appSettings, IMapper mapper, ILoggerFactory loggerFactory, IHostingEnvironment hostingEnvironment) : base(userService)
        {
            if (loggerFactory != null)
            {
                _logger = loggerFactory.CreateLogger("HomePassesController");
            }

            _designService      = designService;
            _mapper             = mapper;
            _appSettings        = appSettings.Value;
            _hostingEnvironment = hostingEnvironment;
        }
 public JobWorkItemController(IJobWorkItemService jobworkitemService, INonInventoryItemService NonInventoryService, IUtilityService utilityService, IItemCategoryService ItemCategoryService,
                              IItemSubCategoryService ItemSubCategoryService, IUserCredentialService UserCredentialService, IModuleService ModuleService, ITypeOfMaterialService TypeOfMaterialService,
                              IColorCodeService ColorCodeService, IDesignService DesignService, IUnitService UnitService)
 {
     this._jobworkitemService     = jobworkitemService;
     this._NonInventoryService    = NonInventoryService;
     this._utilityService         = utilityService;
     this._ItemCategoryService    = ItemCategoryService;
     this._ItemSubCategoryService = ItemSubCategoryService;
     this._IUserCredentialService = UserCredentialService;
     this._iIModuleService        = ModuleService;
     this._TypeOfMaterialService  = TypeOfMaterialService;
     this._ColorCodeService       = ColorCodeService;
     this._DesignService          = DesignService;
     this._UnitService            = UnitService;
 }
Пример #10
0
 public ReplicaCompanyController(ICompanyService CompanyService, ICompanyBankDetailsService CompanyBankDetailsService, IUserCredentialService UserCredentialService, IModuleService ModuleService, IBankService BankService,
                                 IClientMasterService ClientMasterService, IClientBankDetailService ClientBankDetailService, IDesignService DesignService, IEmployeeMasterService EmployeeMasterService, IGodownService GodownService, IGodownAddressService GodownAddressService,
                                 IItemCategoryService ItemCategoryService, IItemSubCategoryService ItemSubCategoryService, IItemService ItemService, IJobWorkerService JobWorkerService, IJobWorkItemService JobWorkItemService, IJobWorkTypeService JobWorkTypeService,
                                 ISalesIncentiveService SalesIncentiveService, IShopService ShopService, ITypeOfMaterialService TypeOfMaterialService, IUnitService UnitService, ISuppliersMasterService SuppliersMasterService, ISupplierBankDetailService SupplierBankDetailService,
                                 ITransportService TransportService, ITransportBankDetailService TransportBankDetailService, INonInventoryItemService NonInventoryItemService, IUserService UserService, IEmployeesCompanyService EmployeesCompanyService, ICommissionService CommissionService,
                                 IBarcodeNumberService BarcodeNumberService, IBrandMasterService BrandMasterService, IDesignationMasterService DesignationMasterService)
 {
     this._CompanyService            = CompanyService;
     this._CompanyBankDetailsService = CompanyBankDetailsService;
     this._UserCredentialService     = UserCredentialService;
     this._ModuleService             = ModuleService;
     this._BankService                = BankService;
     this._ClientMasterService        = ClientMasterService;
     this._ClientBankDetailService    = ClientBankDetailService;
     this._DesignService              = DesignService;
     this._EmployeeMasterService      = EmployeeMasterService;
     this._GodownService              = GodownService;
     this._GodownAddressService       = GodownAddressService;
     this._ItemCategoryService        = ItemCategoryService;
     this._ItemSubCategoryService     = ItemSubCategoryService;
     this._ItemService                = ItemService;
     this._NonInventoryItemService    = NonInventoryItemService;
     this._BarcodeNumberService       = BarcodeNumberService;
     this._JobWorkerService           = JobWorkerService;
     this._JobWorkItemService         = JobWorkItemService;
     this._JobWorkTypeService         = JobWorkTypeService;
     this._SalesIncentiveService      = SalesIncentiveService;
     this._ShopService                = ShopService;
     this._TypeOfMaterialService      = TypeOfMaterialService;
     this._UnitService                = UnitService;
     this._SuppliersMasterService     = SuppliersMasterService;
     this._SupplierBankDetailService  = SupplierBankDetailService;
     this._TransportService           = TransportService;
     this._TransportBankDetailService = TransportBankDetailService;
     this._UserService                = UserService;
     this._EmployeesCompanyService    = EmployeesCompanyService;
     this._CommissionService          = CommissionService;
     this._BrandMasterService         = BrandMasterService;
     this._DesignationMasterService   = DesignationMasterService;
 }
 public DesignSupplyRequestService(IUnitOfWork uow) : base(uow)
 {
     _designService     = new DesignService(uow);
     _currentRepository = _db.DesignsSupplyRequestRepository;
 }
Пример #12
0
 public DesignsSupplyRequestController(IDesignSupplyRequestService designSupplyRequestService, ITaskService taskService, ILogService logService, IDesignService designService)
 {
     _designSupplyRequestService = designSupplyRequestService;
     _designService = designService;
     _taskService   = taskService;
 }
Пример #13
0
 public DesignRepo(IUnityContainer uc, IDesignService service)
 {
     _uc      = uc;
     _service = service;
 }
 public DevicesController(IDeviceService deviceService, IMontageService montageService, IDesignService designService)
 {
     _deviceService  = deviceService;
     _montageService = montageService;
     _designService  = designService;
 }
 public DesignsController(IDesignService service, IDeviceService deviceService) : base(service, deviceService)
 {
 }
Пример #16
0
 public DesignController(IErrorService errorService, IDesignService designService, ICategoryService categoryService) : base(errorService)
 {
     this._designService   = designService;
     this._categoryService = categoryService;
 }
Пример #17
0
 public DesignController(IDesignService designService, INotificationProvider notification)
 {
     _designService = designService;
     _notification  = notification;
 }