private void listView1_DoubleClick(object sender, EventArgs e) { frmAddDocu Obj = new frmAddDocu(this); ListViewItem item = listView1.SelectedItems[0]; Obj.lblTrip.Text = tnum.ToString(); Obj.dtDD.Text = item.SubItems[1].Text; Obj.dtRDD.Text = item.SubItems[7].Text; Obj.txtSource.Text = item.SubItems[6].Text; Obj.txtCustName.Text = item.SubItems[8].Text; Obj.txtWaybill.Text = item.SubItems[2].Text; Obj.txtBody.Text = item.SubItems[3].Text; Obj.txtPlate.Text = item.SubItems[4].Text; Obj.txtDriver.Text = item.SubItems[5].Text; Obj.dtGarIn.Text = item.SubItems[9].Text; Obj.dtGarOut.Text = item.SubItems[10].Text; Obj.dtCustIn.Text = item.SubItems[11].Text; Obj.dtSU.Text = item.SubItems[12].Text; Obj.dtFU.Text = item.SubItems[13].Text; Obj.dtRDoc.Text = item.SubItems[14].Text; Obj.dtCustOut.Text = item.SubItems[15].Text; Obj.dtTruckGar.Text = item.SubItems[17].Text; Obj.dtDocRec.Text = item.SubItems[18].Text; Obj.dtDocTrans.Text = item.SubItems[19].Text; Obj.txtRemarks.Text = item.SubItems[20].Text; Obj.ShowDialog(); }
public frmViewLoad(frmAddDocu frm) { InitializeComponent(); frm1 = frm; }