private void buttonX3_Click(object sender, EventArgs e) { rpt.frm_TRAVAUX ff = new rpt.frm_TRAVAUX(); ff.numf = nfact.Text + ""; ff.ShowDialog(); }
private void buttonX8_Click(object sender, EventArgs e) { if (dataGridViewX1.Rows.Count != 0) { if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("F")) { rpt.frm_fondation ff = new rpt.frm_fondation(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("FD")) { rpt.frm_fondationC ff = new rpt.frm_fondationC(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("M")) { rpt.frm_MONTAGE ff = new rpt.frm_MONTAGE(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("MD")) { rpt.frm_MONTAGEC ff = new rpt.frm_MONTAGEC(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("D")) { rpt.frm_DEROULAGE ff = new rpt.frm_DEROULAGE(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("DD")) { rpt.frm_DEROULAGEC ff = new rpt.frm_DEROULAGEC(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("T")) { rpt.frm_TRAVAUX ff = new rpt.frm_TRAVAUX(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("AV")) { rpt.frm_TRAVAUXAV ff = new rpt.frm_TRAVAUXAV(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("GR")) { rpt.frm_TRAVAUXGR ff = new rpt.frm_TRAVAUXGR(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } else if ((dataGridViewX1.CurrentRow.Cells["TYPE"].Value + "").Equals("TD")) { rpt.frm_DDIERSC ff = new rpt.frm_DDIERSC(); ff.numf = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; ff.ShowDialog(); } } }