Пример #1
0
        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);
        }
Пример #2
0
 public FormMain()
 {
     InitializeComponent();
     CurrWaitInfoList = new List <WaitInfoV1d0>();
     GetWaitInfoList();
     DisplayBarPanel.LoadData(CurrWaitInfoList);
 }
Пример #3
0
 private void FilterButton_Click(object sender, EventArgs e)
 {
     if (sender is ButtonExV1d0)
     {
         var                 buttonEx        = sender as ButtonExV1d0;
         string[]            minMax          = buttonEx.Tag.ToString().Split('-');
         int                 seatMin         = Convert.ToInt32(minMax[0]);
         int                 seatMax         = Convert.ToInt32(minMax[1]);
         List <WaitInfoV1d0> DisplayWaitInfo = CurrWaitInfoList.FindAll(x => x.NumberOfMeals >= seatMin && x.NumberOfMeals <= seatMax);
         DisplayBarPanel.LoadData(DisplayWaitInfo);
     }
 }