private void button1_Click_1(object sender, EventArgs e) { DisplayBarPanel.LoadData(CurrWaitInfoList); DisplayBarPanel.UpdatePageDisplay(1); //FillPanelControls(panelDisplayBar.Controls, 200); //List<WaitInfoV1d0> waitInfoList = new List<WaitInfoV1d0>(); //waitInfoList.Add(new WaitInfoV1d0()); //waitInfoList.Add(new WaitInfoV1d0()); //waitInfoList.Add(new WaitInfoV1d0()); //panelDisplayBar.Controls.Clear(); //for (int i=0;i< waitInfoList.Count;i++) //{ // panelDisplayBar.Controls.RemoveAt() // var displayBar = new QueueInfoDisplayBarV1d0(waitInfoList[i]); // displayBar.Location = new Point(5, 5 + 105 * i); // displayBar.tableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; // displayBar.tableLayoutPanel2.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; // //displayBar.sh // panelDisplayBar.Controls.Add(displayBar); //} //FillWaitInfoListIntoTabelLayoutPanel(tableLayoutPanelQueueInfoDisplayBar, waitInfoList); }
private void button3_Click(object sender, EventArgs e) { //FillPanelControls(panelDisplayBar.Controls, 5); DisplayBarPanel.UpdatePageDisplay(3); }