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