예제 #1
0
        public CustomerInfrastructureUPSsControlController(
            CustomerInfrastructureUPSsControl instance) : base(instance)
        {
            this.controlCustomerInfrastructureUPSs = instance;

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                this.srvCustomerInfrastructureUPS = SamsaraAppContext.Resolve <ICustomerInfrastructureUPSService>();
                this.srvCustomerInfrastructure    = SamsaraAppContext.Resolve <ICustomerInfrastructureService>();
                this.srvUPSBrand = SamsaraAppContext.Resolve <IUPSBrandService>();
                this.srvUPSType  = SamsaraAppContext.Resolve <IUPSTypeService>();
            }

            this.InitializeControlControls();
        }
예제 #2
0
 public UPSBrandForm()
 {
     InitializeComponent();
     this.ctrlUPSBrandForm = new UPSBrandFormController(this);
     this.srvUPSBrand      = SamsaraAppContext.Resolve <IUPSBrandService>();
 }
 public UPSBrandFormController(UPSBrandForm instance)
 {
     this.frmUPSBrand = instance;
     this.srvUPSBrand = SamsaraAppContext.Resolve <IUPSBrandService>();
     this.InitializeFormControls();
 }