private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                ComputerBrandParameters pmtComputerBrand = new ComputerBrandParameters();

                this.controlCustomerInfrastructurePersonalComputers.cbcComputerBrand.Parameters = pmtComputerBrand;
                this.controlCustomerInfrastructurePersonalComputers.cbcComputerBrand.Refresh();

                PersonalComputerTypeParameters pmtPersonalComputerType = new PersonalComputerTypeParameters();

                this.controlCustomerInfrastructurePersonalComputers.pctcPersonalComputerType.Parameters = pmtPersonalComputerType;
                this.controlCustomerInfrastructurePersonalComputers.pctcPersonalComputerType.Refresh();

                OperativeSystemParameters pmtOperativeSystem = new OperativeSystemParameters();

                this.controlCustomerInfrastructurePersonalComputers.oscOperativeSystem.Parameters = pmtOperativeSystem;
                this.controlCustomerInfrastructurePersonalComputers.oscOperativeSystem.Refresh();

                this.controlCustomerInfrastructurePersonalComputers.cipcccCustomerInfrastructurePersonalComputerClassification
                .Parameters = new CustomerInfrastructurePersonalComputerClassificationParameters();
                this.controlCustomerInfrastructurePersonalComputers.cipcccCustomerInfrastructurePersonalComputerClassification
                .Refresh();

                this.controlCustomerInfrastructurePersonalComputers
                .cipcccCustomerInfrastructurePersonalComputerClassification.ValueChanged
                    += new SamsaraEntityChooserValueChangedEventHandler <
                           CustomerInfrastructurePersonalComputerClassification>
                           (cipcccCustomerInfrastructurePersonalComputerClassification_ValueChanged);

                this.controlCustomerInfrastructurePersonalComputers.grdRelations.InitializeLayout
                    += new InitializeLayoutEventHandler(grdRelations_InitializeLayout);
            }
        }
        private void grdRelations_InitializeLayout(object sender, InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Override.AllowUpdate = DefaultableBoolean.False;

            ComputerBrandParameters pmtComputerBrand = new ComputerBrandParameters();

            IList <ComputerBrand> cctvBrands = this.srvComputerBrand.GetListByParameters(pmtComputerBrand);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvBrands,
                                                   band.Columns["ComputerBrandId"], "ComputerBrandId", "Name", "Seleccione");

            OperativeSystemParameters pmtOperativeSystem = new OperativeSystemParameters();

            IList <OperativeSystem> cctvOperativeSystems = this.srvOperativeSystem.GetListByParameters(pmtOperativeSystem);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvOperativeSystems,
                                                   band.Columns["OperativeSystemId"], "OperativeSystemId", "Name", "Seleccione");;

            PersonalComputerTypeParameters pmtPersonalComputerType = new PersonalComputerTypeParameters();

            IList <PersonalComputerType> cctvTypes = this.srvPersonalComputerType.GetListByParameters(pmtPersonalComputerType);

            WindowsFormsUtil.SetUltraGridValueList(e.Layout, cctvTypes,
                                                   band.Columns["PersonalComputerTypeId"], "PersonalComputerTypeId", "Name", "Seleccione");
        }
        private void Search()
        {
            PersonalComputerTypeParameters pmtPersonalComputerType = new PersonalComputerTypeParameters();

            pmtPersonalComputerType.Name = "%" + this.frmPersonalComputerType.txtSchName.Text + "%";

            DataTable dtPersonalComputerTypes = srvPersonalComputerType.SearchByParameters(pmtPersonalComputerType);

            this.frmPersonalComputerType.grdSchSearch.DataSource = null;
            this.frmPersonalComputerType.grdSchSearch.DataSource = dtPersonalComputerTypes;
        }