예제 #1
0
        public void ComputerModelingTest()
        {
            var model = new ComputerModeling();

            model.Start();
            Thread.Sleep(10000);
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var cashBoxes = new List <CashBoxView>();

            for (int i = 0; i < model.CashDesks.Count; i++)
            {
                var box = new CashBoxView(model.CashDesks[i], i, 10, 26 * i);
                cashBoxes.Add(box);
                Controls.Add(box.CashDeskName);
                Controls.Add(box.Price);
                Controls.Add(box.QueueLenght);
                Controls.Add(box.LeaveCustomersCount);
            }

            model.Start();
        }