void btSubtract_Click(object sender, EventArgs args) { int temp = Int32.Parse(tbIndexFood.Text); if (temp > 1) { temp--; tbIndexFood.Text = temp.ToString(); this.index = temp.ToString(); formQLBan.SaveListFood(); } }
public void OnPicter_click(object sender, EventArgs e) { if (!Exist(lName.Text)) { //MessageBox.Show("Món " + lName.Text + " đã được chọn"); formQLBan.Add_FoodINLIST(lName.Text, lPrice.Text, "1"); formQLBan.SaveListFood(); //parent.CheckSelected(pSelected); Tick(); } }