public CustomerInfrastructureNetworkSwitchesControlController( CustomerInfrastructureNetworkSwitchesControl instance) : base(instance) { this.controlCustomerInfrastructureNetworkSwitches = instance; if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { this.srvCustomerInfrastructureNetworkSwitch = SamsaraAppContext.Resolve <ICustomerInfrastructureNetworkSwitchService>(); this.srvCustomerInfrastructureNetwork = SamsaraAppContext.Resolve <ICustomerInfrastructureNetworkService>(); this.srvSwitchBrand = SamsaraAppContext.Resolve <ISwitchBrandService>(); } this.InitializeControlControls(); }
public SwitchBrandFormController(SwitchBrandForm instance) { this.frmSwitchBrand = instance; this.srvSwitchBrand = SamsaraAppContext.Resolve <ISwitchBrandService>(); this.InitializeFormControls(); }
public SwitchBrandForm() { InitializeComponent(); this.ctrlSwitchBrandForm = new SwitchBrandFormController(this); this.srvSwitchBrand = SamsaraAppContext.Resolve <ISwitchBrandService>(); }