void pcil_OnPCISelected(int itm1ID, int itm2ID, int itm3ID) { // itm1ID is department // itm2ID is project // itm3ID is pci FPCIMain pci = new FPCIMain(itm1ID, itm2ID); if (itm3ID != 0) { pci.SetPCI(itm3ID); } pci.ShowDialog(); }
private void openCurrentPCIToolStripMenuItem_Click(object sender, EventArgs e) { int bm = tdbgPCILog.Bookmark; if (bm >= 0) { int pciID = Convert.ToInt32(mdsPCILogs.Tables[0].Rows[bm]["ID"]); FPCIMain pciMain = new FPCIMain(); //pciMain = new FPCIMain(pci.DepartmentID, pci.ProjectID); pciMain.OnPCIChanged += new RevSol.ItemValueChangedHandler(pciMain_OnPCIChanged); pciMain.SetPCI(pciID); pciMain.ShowDialog(); pciMain.OnPCIChanged -= new RevSol.ItemValueChangedHandler(pciMain_OnPCIChanged); } }