void addFile() { FormPurchasePlanDoc FPurchasePlanDoc = new FormPurchasePlanDoc(); FPurchasePlanDoc.MdiParent = DataForms.FClient; FPurchasePlanDoc.ID = null; FPurchasePlanDoc.Show(); }
void editFile() { if (listView1.SelectedIndices.Count > 0) { FormPurchasePlanDoc FPurchasePlanDoc = new FormPurchasePlanDoc(); FPurchasePlanDoc.MdiParent = DataForms.FClient; FPurchasePlanDoc.ID = listView1.Items[listView1.SelectedIndices[0]].SubItems[8].Text; FPurchasePlanDoc.Show(); } }