Пример #1
0
        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();
        }
Пример #2
0
 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();
 }