Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public UPSTypeForm()
 {
     InitializeComponent();
     this.ctrlUPSTypeForm = new UPSTypeFormController(this);
     this.srvUPSType      = SamsaraAppContext.Resolve <IUPSTypeService>();
 }
Exemplo n.º 3
0
 public UPSTypeFormController(UPSTypeForm instance)
 {
     this.frmUPSType = instance;
     this.srvUPSType = SamsaraAppContext.Resolve <IUPSTypeService>();
     this.InitializeFormControls();
 }