コード例 #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>();
 }
コード例 #3
0
 public PrinterTypeFormController(PrinterTypeForm instance)
 {
     this.frmPrinterType = instance;
     this.srvPrinterType = SamsaraAppContext.Resolve <IPrinterTypeService>();
     this.InitializeFormControls();
 }