Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
0
 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();
 }
Esempio n. 8
0
 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();
 }
Esempio n. 9
0
 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();
 }
Esempio n. 10
0
 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();
 }
Esempio n. 11
0
 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();
 }
Esempio n. 12
0
 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();
 }
Esempio n. 13
0
 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();//받을 돈
 }
Esempio n. 14
0
 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();
 }
Esempio n. 15
0
        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;
                }
            }
        }
Esempio n. 16
0
 private void UpdateForm(Donut donut)
 {
     Items.Text   += donut.getInfo();
     sum          += donut.getPrice();
     textBox3.Text = sum.ToString();            //총계
 }