Ejemplo n.º 1
0
        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();
 }
Ejemplo n.º 3
0
 public SwitchBrandForm()
 {
     InitializeComponent();
     this.ctrlSwitchBrandForm = new SwitchBrandFormController(this);
     this.srvSwitchBrand      = SamsaraAppContext.Resolve <ISwitchBrandService>();
 }