private void data_Tablacondpago() { try { if (Tablacondpago != null) { Tablacondpago.Rows.Clear(); } var BL = new tb_condpagoBL(); var BE = new tb_condpago(); Tablacondpago = BL.GetAll(EmpresaID, BE).Tables[0]; if (Tablacondpago.Rows.Count > 0) { btn_imprimir.Enabled = true; gridcondpago.DataSource = Tablacondpago; gridcondpago.Rows[0].Selected = false; gridcondpago.Focus(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void CargarformaPago() { tb_condpago BE = new tb_condpago(); tb_condpagoBL BL = new tb_condpagoBL(); DataTable dt = new DataTable(); dt = BL.GetAll(EmpresaID, BE).Tables[0]; cmb_formapago.DataSource = dt; cmb_formapago.DisplayMember = "condpagoname"; cmb_formapago.ValueMember = "condpagoid"; }