private void button4_Click(object sender, EventArgs e) { Meal m2 = new Meal(); m2.mealId = textBox6.Text; StoreCtrl.deleteMeal(m2); button1_Click(null, null); textBox6.Clear(); }
private void button3_Click(object sender, EventArgs e) { Meal m3 = new Meal(); m3.mealId = textBox4.Text; m3.price = textBox5.Text; StoreCtrl.updatePrice(m3); button1_Click(null, null); textBox4.Clear(); textBox5.Clear(); }
private void button2_Click(object sender, EventArgs e) { Meal m1 = new Meal(); Store s2 = new Store(); string sql = "select * from menu where 1=1"; List <object []> a = Utiles.execQuery(sql); m1.mealId = (a.Count() + 1).ToString(); m1.mealName = textBox2.Text; m1.mealType = comboBox1.Text; m1.price = textBox3.Text; StoreCtrl.saveMeal(s2, m1); button1_Click(null, null); textBox2.Clear(); comboBox1.Text = ""; textBox3.Clear(); }
private void button1_Click(object sender, EventArgs e) { Store s = new Store(); if (comboBox1.Text.Trim() == "店名") { if (textBox1.Text != " ") { s.storeName = textBox1.Text; StoreCtrl.updateInfo(s); } } else if (comboBox1.Text.Trim() == "地址") { if (textBox1.Text != " ") { s.address = textBox1.Text; StoreCtrl.updateAddress(s); } } StoreCtrl.listInfo(s, listView1); }
private void button1_Click(object sender, EventArgs e) { Store s1 = new Store(); StoreCtrl.loadAllMeals(listView1, s1); }
private void button2_Click(object sender, EventArgs e) { Store s = new Store(); StoreCtrl.loadSumOrders(listView2, s); }
private void button1_Click(object sender, EventArgs e) { Store s = new Store(); StoreCtrl.loadAllOrders(listView1, s); }