public void ShopModelTest() { var model = new ShopModel(); model.Start(); Thread.Sleep(10000); model.Stop(); }
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(); }
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(); }
public void ShopModelTest() { var model = new ShopModel(); model.Start(); }