private void btnVerReferencia_Click(object sender, EventArgs e) { Int32 Codigo = Convert.ToInt32(cbbClientes.SelectedValue); frmListaFacturasPorCliente ListaDocumento = new frmListaFacturasPorCliente(Codigo, "Referencia"); ListaDocumento.ShowDialog(this); }
private void btnVerDocumento_Click(object sender, EventArgs e) { if (CodigoCliente.HasValue) { Int32 Codigo = Convert.ToInt32(CodigoCliente); frmListaFacturasPorCliente ListarDocumentos = new frmListaFacturasPorCliente(Codigo, "Referencia"); ListarDocumentos.ShowDialog(this); } }
private void btnVerDocumentos_Click(object sender, EventArgs e) { try { Int32 Codigo = Convert.ToInt32(cbbClientes.SelectedValue); frmListaFacturasPorCliente ListaDocumento = new frmListaFacturasPorCliente(Codigo, "Documento"); ListaDocumento.ShowDialog(this); } catch (Exception Ex) { MessageBox.Show(Ex.Message); } }