Exemple #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();
        }
Exemple #2
0
 public CommutatorTypeForm()
 {
     InitializeComponent();
     this.ctrlCommutatorTypeForm = new CommutatorTypeFormController(this);
     this.srvCommutatorType      = SamsaraAppContext.Resolve <ICommutatorTypeService>();
 }
Exemple #3
0
 public CommutatorTypeFormController(CommutatorTypeForm instance)
 {
     this.frmCommutatorType = instance;
     this.srvCommutatorType = SamsaraAppContext.Resolve <ICommutatorTypeService>();
     this.InitializeFormControls();
 }