public HorizontalIntegrationReportFormController(HorizontalIntegrationReportForm frmHorizontalIntegration) : base(frmHorizontalIntegration) { this.frmHorizontalIntegration = frmHorizontalIntegration; this.srvERPCustomer = SamsaraAppContext.Resolve <IERPCustomerService>(); this.srvProductSubline = SamsaraAppContext.Resolve <IProductSublineService>(); this.srvProductFamily = SamsaraAppContext.Resolve <IProductFamilyService>(); this.InitializeFormControls(); }
public VerticalIntegrationReportFormController(VerticalIntegrationReportForm frmVerticalIntegration) : base(frmVerticalIntegration) { this.frmVerticalIntegration = frmVerticalIntegration; this.srvCustomer = SamsaraAppContext.Resolve <ICustomerService>(); this.srvProductLine = SamsaraAppContext.Resolve <IProductLineService>(); this.srvProductSubline = SamsaraAppContext.Resolve <IProductSublineService>(); this.srvProductFamily = SamsaraAppContext.Resolve <IProductFamilyService>(); lstLines = this.srvProductLine.GetAll() .AsParallel().OrderBy(x => x.Name).ToList(); this.InitializeFormControls(); }