public CustomerInfrastructurePrintersControlController( CustomerInfrastructurePrintersControl instance) : base(instance) { this.controlCustomerInfrastructurePrinters = instance; if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { this.srvCustomerInfrastructurePrinter = SamsaraAppContext.Resolve <ICustomerInfrastructurePrinterService>(); this.srvCustomerInfrastructure = SamsaraAppContext.Resolve <ICustomerInfrastructureService>(); this.srvPrinterBrand = SamsaraAppContext.Resolve <IPrinterBrandService>(); this.srvPrinterType = SamsaraAppContext.Resolve <IPrinterTypeService>(); } this.InitializeControlControls(); }
public PrinterTypeForm() { InitializeComponent(); this.ctrlPrinterTypeForm = new PrinterTypeFormController(this); this.srvPrinterType = SamsaraAppContext.Resolve <IPrinterTypeService>(); }
public PrinterTypeFormController(PrinterTypeForm instance) { this.frmPrinterType = instance; this.srvPrinterType = SamsaraAppContext.Resolve <IPrinterTypeService>(); this.InitializeFormControls(); }