public CustomerInfrastructureSecuritySoftwaresControlController(
            CustomerInfrastructureSecuritySoftwaresControl instance) : base(instance)
        {
            this.controlCustomerInfrastructureSecuritySoftwares = instance;

            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                this.srvCustomerInfrastructureSecuritySoftware = SamsaraAppContext.Resolve <ICustomerInfrastructureSecuritySoftwareService>();
                this.srvCustomerInfrastructure = SamsaraAppContext.Resolve <ICustomerInfrastructureService>();
                this.srvSecuritySoftwareBrand  = SamsaraAppContext.Resolve <ISecuritySoftwareBrandService>();
                this.srvSecuritySoftwareType   = SamsaraAppContext.Resolve <ISecuritySoftwareTypeService>();
            }

            this.InitializeControlControls();
        }
Пример #2
0
 public SecuritySoftwareBrandForm()
 {
     InitializeComponent();
     this.ctrlSecuritySoftwareBrandForm = new SecuritySoftwareBrandFormController(this);
     this.srvSecuritySoftwareBrand      = SamsaraAppContext.Resolve <ISecuritySoftwareBrandService>();
 }
 public SecuritySoftwareBrandFormController(SecuritySoftwareBrandForm instance)
 {
     this.frmSecuritySoftwareBrand = instance;
     this.srvSecuritySoftwareBrand = SamsaraAppContext.Resolve <ISecuritySoftwareBrandService>();
     this.InitializeFormControls();
 }