Esempio n. 1
0
        private void InitializeControlControls()
        {
            if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
            {
                PrinterBrandParameters pmtPrinterBrand = new PrinterBrandParameters();

                this.controlCustomerInfrastructurePrinters.pbcPrinterBrand.Parameters = pmtPrinterBrand;
                this.controlCustomerInfrastructurePrinters.pbcPrinterBrand.Refresh();

                PrinterTypeParameters pmtPrinterType = new PrinterTypeParameters();

                this.controlCustomerInfrastructurePrinters.ptcPrinterType.Parameters = pmtPrinterType;
                this.controlCustomerInfrastructurePrinters.ptcPrinterType.Refresh();

                CustomerInfrastructurePrinterClassificationParameters pmtCustomerInfrastructurePrinterClassification
                    = new CustomerInfrastructurePrinterClassificationParameters();

                this.controlCustomerInfrastructurePrinters.cipccCustomerInfrastructurePrinterClassification
                .Parameters = pmtCustomerInfrastructurePrinterClassification;
                this.controlCustomerInfrastructurePrinters.cipccCustomerInfrastructurePrinterClassification.Refresh();

                this.controlCustomerInfrastructurePrinters
                .cipccCustomerInfrastructurePrinterClassification.ValueChanged
                    += new Base.Controls.EventsHandlers.SamsaraEntityChooserValueChangedEventHandler
                       <CustomerInfrastructurePrinterClassification>
                           (cipccCustomerInfrastructurePrinterClassification_ValueChanged);

                this.controlCustomerInfrastructurePrinters.grdRelations.InitializeLayout
                    += new InitializeLayoutEventHandler(grdRelations_InitializeLayout);
            }
        }
Esempio n. 2
0
        private void Search()
        {
            CustomerInfrastructurePrinterClassificationParameters pmtCustomerInfrastructurePrinterClassification = new CustomerInfrastructurePrinterClassificationParameters();

            pmtCustomerInfrastructurePrinterClassification.Name = "%" + this.frmCustomerInfrastructurePrinterClassification.txtSchName.Text + "%";

            DataTable dtCustomerInfrastructurePrinterClassifications = srvCustomerInfrastructurePrinterClassification.SearchByParameters(pmtCustomerInfrastructurePrinterClassification);

            this.frmCustomerInfrastructurePrinterClassification.grdSchSearch.DataSource = null;
            this.frmCustomerInfrastructurePrinterClassification.grdSchSearch.DataSource = dtCustomerInfrastructurePrinterClassifications;
        }