private void button2_Click(object sender, EventArgs e) { DataRowView FacturaActual = (DataRowView)facturasCabListaBindingSource.Current; if (Convert.IsDBNull(FacturaActual["FacturaPresup"])==false) { RptFacturasManualImp frm = new RptFacturasManualImp(); frm.LoadFiltro(Convert.ToInt32(idFactCabComboBox.SelectedValue)); frm.MdiParent = this.MdiParent; frm.Show(); } else { if ((Boolean)FacturaActual["EsFactura"] == true) { int Factura = Convert.ToInt32(FacturaActual["IdFactCab"]); RptFacturasHorasImp frm = new RptFacturasHorasImp(); frm.LoadFiltro(Factura); frm.MdiParent = this.MdiParent; frm.Show(); } else { int Factura = Convert.ToInt32(FacturaActual["IdFactCab"]); RptFacturasHorasImpParte frm = new RptFacturasHorasImpParte(); frm.LoadFiltro(Factura); frm.MdiParent = this.MdiParent; frm.Show(); } } }
private void toolStripButton1_Click_1(object sender, EventArgs e) { DataRowView FacturaAct = (DataRowView)facturasCabBindingSource.Current; int Factura = Convert.ToInt32(FacturaAct["IdFactCab"]); RptFacturasHorasImp frm = new RptFacturasHorasImp(); frm.LoadFiltro(Factura); frm.MdiParent = this.MdiParent; frm.Show(); }