예제 #1
0
        public void ShopModelTest()
        {
            var model = new ShopModel();

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

            for (int i = 0; i < model.CashDesks.Count; i++)
            {
                var box = new CashBoxView(model.CashDesks[i], i, 10, 30 * i + 10);

                CashDesks.Add(box);
                AddToControls(box);
            }
            model.Start();
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var cashboxs = new List <CashView>();

            for (int i = 0; i < model.Cashs.Count; i++)
            {
                var box = new CashView(model.Cashs[i], i, 10, 26 * i);
                cashboxs.Add(box);
                Controls.Add(box.CashName);
                Controls.Add(box.NumericUpDown);
                Controls.Add(box.ProgressBar);
                Controls.Add(box.CustomerCount);
            }

            model.Start();
        }
예제 #4
0
        public void ShopModelTest()
        {
            var model = new ShopModel();

            model.Start();
        }