public void StartTest() { var model = new ShopComputerModel(); model.Start(); Thread.Sleep(10000); }
public void StartTest() { var model = new ShopComputerModel(); model.Start(); Assert.Fail(); }
public void ShopComputerModelTest() { ShopComputerModel shopComputerModel = new ShopComputerModel(); shopComputerModel.Start(); Thread.Sleep(5000); }
private void button4_Click(object sender, EventArgs e) { PriceLabel = new Label(); QueueLabel = new Label(); LeaveCustomersLabel = new Label(); PriceLabel.Location = new System.Drawing.Point(130, 7); PriceLabel.Size = new System.Drawing.Size(35, 13); PriceLabel.Text = "Price"; Controls.Add(PriceLabel); QueueLabel.Location = new System.Drawing.Point(230, 7); QueueLabel.Size = new System.Drawing.Size(90, 13); QueueLabel.Text = "Queue Length"; Controls.Add(QueueLabel); LeaveCustomersLabel.Location = new System.Drawing.Point(354, 7); LeaveCustomersLabel.Size = new System.Drawing.Size(40, 13); LeaveCustomersLabel.Text = "Leave"; Controls.Add(LeaveCustomersLabel); CashBoxSerialize(); button1.Enabled = true; button4.Enabled = false; model.Start(); }
public void StartTest() { //arrange var model = new ShopComputerModel(); model.Start(); Thread.Sleep(10000); //act //assert }
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, 20, 26 * i); cashBoxes.Add(box); Controls.Add(box.Label); Controls.Add(box.NumericUpDown); } model.Start(); }
private void btStart_Click(object sender, EventArgs e) { var cashDesks = new List <CashDeckView>(); for (int i = 0; i < model.CashDesks.Count; i++) { var cashDesk = new CashDeckView(model.CashDesks[i], i, 10, 26 * i); cashDesks.Add(cashDesk); Controls.Add(cashDesk.CashDeskName); Controls.Add(cashDesk.Price); Controls.Add(cashDesk.QueueLenght); Controls.Add(cashDesk.ExitCustomer); } model.Start(); }
private void button1_Click(object sender, EventArgs e) { var cashBoxes = new List <CashDeskView>(); for (int i = 0; i < model.CashDesks.Count; i++) { var box = new CashDeskView(model.CashDesks[i], i, 10, 26 * i); cashBoxes.Add(box); Controls.Add(box.CashDeskName); Controls.Add(box.Price); Controls.Add(box.QueueLength); Controls.Add(box.LeaveCustomersCount); } model.Start(); }
private void BeginButton_Click(object sender, EventArgs e) { var cashDeskes = new List <CashDeskView>(); for (int i = 0; i < model.CashDesks.Count; i++) { var desk = new CashDeskView(model.CashDesks[i], i, 12, i * 26); cashDeskes.Add(desk); Controls.Add(desk.CashDeskName); Controls.Add(desk.CashDeskSum); Controls.Add(desk.QueueLengthProgres); Controls.Add(desk.ExitCustomer); } model.Start(); }
private void StartButton_Click(object sender, EventArgs e) { CashBoxes = new List <CashBoxView>(); for (var 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.QueueLenght); Controls.Add(box.Price); Controls.Add(box.LeaveCustomersCount); } ((Button)sender).Enabled = false; model.Start(); }
private void button1_Click(object sender, EventArgs e) { var cashDescViews = new List <CashDescView>(); for (int i = 0; i < model.cashDescs.Count; i++) { var cash = new CashDescView(model.cashDescs[i], i, 10, 26 * i); cashDescViews.Add(cash); Controls.Add(cash.cashDescName); Controls.Add(cash.price); Controls.Add(cash.queueLength); Controls.Add(cash.leaveCustomersCount); } model.Start(); }
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(); }
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, 30, 26 * i); cashBoxes.Add(box); Controls.Add(box.CashDeskName); Controls.Add(box.Price); Controls.Add(box.QueueLenght); Controls.Add(box.LeaveCustomersCount); Controls.Add(box.ServedCustomer); Controls.Add(box.TotalCustomer); } label4.Text = cashBoxes.Count.ToString(); model.Start(); button1.Enabled = false; }
private void StartBtn_Click(object sender, EventArgs e) { StopBtn.Enabled = true; StartBtn.Enabled = false; computerModel.Start(); }