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 SecuritySoftwareTypeForm()
 {
     InitializeComponent();
     this.ctrlSecuritySoftwareTypeForm = new SecuritySoftwareTypeFormController(this);
     this.srvSecuritySoftwareType      = SamsaraAppContext.Resolve <ISecuritySoftwareTypeService>();
 }
 public SecuritySoftwareTypeFormController(SecuritySoftwareTypeForm instance)
 {
     this.frmSecuritySoftwareType = instance;
     this.srvSecuritySoftwareType = SamsaraAppContext.Resolve <ISecuritySoftwareTypeService>();
     this.InitializeFormControls();
 }