public void updateAGVMCForm() { foreach (DictionaryEntry de in pausePanelHash) { PauseCtrlPanel pcp = (PauseCtrlPanel)de.Value; pcp.updatePanel(); } }
public void initAGVMCForm() { int tmp = 0; foreach (ForkLift fl in forkLiftList) { if (fl.forklift_number == 3) { //continue; } PauseCtrlPanel pcp = new PauseCtrlPanel(); pcp.initPanel(fl); pcp.Location = new Point(40, 30 + tmp * 60); pcp.Size = new Size(200, 50); this.Controls.Add(pcp); pausePanelHash.Add(fl.forklift_number, pcp); tmp++; } }