示例#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();
        }
 public PrinterBrandFormController(PrinterBrandForm instance)
 {
     this.frmPrinterBrand = instance;
     this.srvPrinterBrand = SamsaraAppContext.Resolve <IPrinterBrandService>();
     this.InitializeFormControls();
 }
 public PrinterBrandForm()
 {
     InitializeComponent();
     this.ctrlPrinterBrandForm = new PrinterBrandFormController(this);
     this.srvPrinterBrand      = SamsaraAppContext.Resolve <IPrinterBrandService>();
 }