private void RichStawberry_Click(object sender, EventArgs e) { donut = new Donut("리치딸치도넛", 1800, 500, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Caramel_Click(object sender, EventArgs e) { donut = new Donut("카라멜아이스드", 1500, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Loaker_Click(object sender, EventArgs e) { donut = new Donut("로아커도넛", 2000, 700, 200); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Rice_Click(object sender, EventArgs e) { donut = new Donut("딸기찰떡도넛", 2200, 900, 400); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void StrawberryFilled_Click(object sender, EventArgs e) { donut = new Donut("스트로베리필드", 1300, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Nutty_Click(object sender, EventArgs e) { donut = new Donut("너티코코아링", 1800, 500, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Cheese_Click(object sender, EventArgs e) { donut = new Donut("뉴욕치즈케이크", 1600, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void SourCreamCake_Click(object sender, EventArgs e) { donut = new Donut("사워크림케익", 1300, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Green_Click(object sender, EventArgs e) { donut = new Donut("그린글로스", 1300, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void PeanutCream_Click(object sender, EventArgs e) { donut = new Donut("땅콩크림빵", 1500, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void ChocolateIced_Click(object sender, EventArgs e) { donut = new Donut("초콜릿글레이즈드", 1300, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Sugar_Click(object sender, EventArgs e) { donut = new pos.Donut("슈가코티드", 1300, 0, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void Original_Click(object sender, EventArgs e) { donut = new Donut("오리지널글레이즈드", 1200, 0, 0); donuts.Add(donut); UpdateForm(donut); // MakeSet(); //textBox1.Text = solve(donuts.Count() / 6).ToString();//받을 돈 }
private void Lotus_Click(object sender, EventArgs e) { donut = new Donut("로투스비스코프", 1800, 500, 0); donuts.Add(donut); UpdateForm(donut); //MakeSet(); textBox1.Text = solve(donuts.Count() / 6).ToString(); }
private void UpdateForm(Donut donut) { Items.Text += donut.getInfo(); sum += donut.getPrice(); textBox3.Text = sum.ToString(); donuts.Sort(); int ss = 0, count = 0; for (int i = donuts.Count() / 6 * 6 - 1; i >= 0; i--) { ss += donuts[i].AdditionalPrice1; count++; if (count % 12 == 0) { p.Enqueue(ss + 13000); ss = 0; } } }
private void UpdateForm(Donut donut) { Items.Text += donut.getInfo(); sum += donut.getPrice(); textBox3.Text = sum.ToString(); //총계 }