Exemplo n.º 1
0
        public CustomerInfrastructureNetworkCommutatorsControlController(
            CustomerInfrastructureNetworkCommutatorsControl instance) : base(instance)
        {
            this.controlCustomerInfrastructureNetworkCommutators = instance;

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                this.srvCustomerInfrastructureNetworkCommutator = SamsaraAppContext.Resolve <ICustomerInfrastructureNetworkCommutatorService>();
                this.srvCustomerInfrastructureNetwork           = SamsaraAppContext.Resolve <ICustomerInfrastructureNetworkService>();
                this.srvCommutatorBrand = SamsaraAppContext.Resolve <ICommutatorBrandService>();
                this.srvCommutatorType  = SamsaraAppContext.Resolve <ICommutatorTypeService>();
            }

            this.InitializeControlControls();
        }
Exemplo n.º 2
0
 public CommutatorTypeForm()
 {
     InitializeComponent();
     this.ctrlCommutatorTypeForm = new CommutatorTypeFormController(this);
     this.srvCommutatorType      = SamsaraAppContext.Resolve <ICommutatorTypeService>();
 }
Exemplo n.º 3
0
 public CommutatorTypeFormController(CommutatorTypeForm instance)
 {
     this.frmCommutatorType = instance;
     this.srvCommutatorType = SamsaraAppContext.Resolve <ICommutatorTypeService>();
     this.InitializeFormControls();
 }