Exemplo n.º 1
0
        private void InitializeFormControls()
        {
            // BidderType
            BidderTypeParameters pmtBidderType = new BidderTypeParameters();

            this.frmBidder.btccDetBidderType.Parameters    = pmtBidderType;
            this.frmBidder.btccDetBidderType.ValueMember   = "BidderTypeId";
            this.frmBidder.btccDetBidderType.DisplayMember = "Name";
            this.frmBidder.btccDetBidderType.Refresh();

            this.frmBidder.btccSchBidderType.Parameters    = pmtBidderType;
            this.frmBidder.btccSchBidderType.ValueMember   = "BidderTypeId";
            this.frmBidder.btccSchBidderType.DisplayMember = "Name";
            this.frmBidder.btccSchBidderType.Refresh();

            this.frmBidder.btnSchEdit.Click   += new EventHandler(btnSchEdit_Click);
            this.frmBidder.btnSchSearch.Click += new EventHandler(btnSchSearch_Click);
            this.frmBidder.btnSchCreate.Click += new EventHandler(btnSchCreate_Click);
            this.frmBidder.btnDetSave.Click   += new EventHandler(btnDetSave_Click);
            this.frmBidder.btnDetCancel.Click += new EventHandler(btnDetCancel_Click);
            this.frmBidder.btnSchClear.Click  += new EventHandler(btnSchClear_Click);
            this.frmBidder.btnSchDelete.Click += new EventHandler(this.btnSchDelete_Click);

            this.frmBidder.HiddenDetail(true);
            this.ClearSearchControls();
        }
        private void InitializeFormControls()
        {
            // BidderType
            BidderTypeParameters pmtBidderType  = new BidderTypeParameters();
            IList <BidderType>   lstBidderTypes = srvBidderType.GetListByParameters(pmtBidderType);

            WindowsFormsUtil.LoadCombo <BidderType>(this.frmBidder.uceSchType,
                                                    lstBidderTypes, "BidderTypeId", "Name", "Seleccione");
            WindowsFormsUtil.LoadCombo <BidderType>(this.frmBidder.uceDetType,
                                                    lstBidderTypes, "BidderTypeId", "Name", "Seleccione");

            this.frmBidder.btnSchEdit.Click   += new EventHandler(btnSchEdit_Click);
            this.frmBidder.btnSchSearch.Click += new EventHandler(btnSchSearch_Click);
            this.frmBidder.btnSchCreate.Click += new EventHandler(btnSchCreate_Click);
            this.frmBidder.btnDetSave.Click   += new EventHandler(btnDetSave_Click);
            this.frmBidder.btnDetCancel.Click += new EventHandler(btnDetCancel_Click);
            this.frmBidder.btnSchClear.Click  += new EventHandler(btnSchClear_Click);
            this.frmBidder.btnSchDelete.Click += new EventHandler(this.btnSchDelete_Click);

            this.frmBidder.HiddenDetail(true);
            this.ClearSearchControls();
        }