public CustomerInfrastructurePersonalComputersControlController( CustomerInfrastructurePersonalComputersControl instance) : base(instance) { this.controlCustomerInfrastructurePersonalComputers = instance; if (LicenseManager.UsageMode != LicenseUsageMode.Designtime) { this.srvCustomerInfrastructurePersonalComputer = SamsaraAppContext.Resolve <ICustomerInfrastructurePersonalComputerService>(); this.srvCustomerInfrastructure = SamsaraAppContext.Resolve <ICustomerInfrastructureService>(); this.srvPersonalComputerType = SamsaraAppContext.Resolve <IPersonalComputerTypeService>(); this.srvOperativeSystem = SamsaraAppContext.Resolve <IOperativeSystemService>(); this.srvComputerBrand = SamsaraAppContext.Resolve <IComputerBrandService>(); } this.InitializeControlControls(); }
public PersonalComputerTypeFormController(PersonalComputerTypeForm instance) { this.frmPersonalComputerType = instance; this.srvPersonalComputerType = SamsaraAppContext.Resolve <IPersonalComputerTypeService>(); this.InitializeFormControls(); }
public PersonalComputerTypeForm() { InitializeComponent(); this.ctrlPersonalComputerTypeForm = new PersonalComputerTypeFormController(this); this.srvPersonalComputerType = SamsaraAppContext.Resolve <IPersonalComputerTypeService>(); }