Example #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;
 }
Example #3
0
 public ReportsController(IReportService reportService, IMontageService montageService, IDesignService designService, IDeviceService deviceService)
 {
     _reportService  = reportService;
     _montageService = montageService;
     _designService  = designService;
     _deviceService  = deviceService;
 }
Example #4
0
 public void InitializeService(IDataphoria dataphoria)
 {
     _service = new DesignService(dataphoria, this);
     _service.OnModifiedChanged += NameOrModifiedChanged;
     _service.OnNameChanged     += NameOrModifiedChanged;
     _service.OnRequestLoad     += RequestLoad;
     _service.OnRequestSave     += RequestSave;
 }
Example #5
0
 public DesignsController(IDesignService service)
 {
     _designService = service;
     _mapper        = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap <DesignDTO, Design>();
         cfg.CreateMap <Design, DesignDTO>();
     })
                      .CreateMapper();
 }
Example #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;
 }
Example #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;
        }
        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;
 }
Example #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;
 }
Example #12
0
 public DesignsSupplyRequestController(IDesignSupplyRequestService designSupplyRequestService, ITaskService taskService, ILogService logService, IDesignService designService)
 {
     _designSupplyRequestService = designSupplyRequestService;
     _designService = designService;
     _taskService   = taskService;
 }
Example #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)
 {
 }
 public DesignController(IErrorService errorService, IDesignService designService, ICategoryService categoryService) : base(errorService)
 {
     this._designService   = designService;
     this._categoryService = categoryService;
 }
Example #17
0
 public DesignController(IDesignService designService, INotificationProvider notification)
 {
     _designService = designService;
     _notification  = notification;
 }