private void single4_btn_Click(object sender, EventArgs e) { using (numOfMenu menu = new numOfMenu(singleMenu[3], single[3])) { var result = menu.ShowDialog(); if (result == DialogResult.OK) { int n = menu.returnVal; this.single[3] = n; } } }
private void drink3_btn_Click(object sender, EventArgs e) { using (numOfMenu menu = new numOfMenu(drinkMenu[2], drink[2])) { var result = menu.ShowDialog(); if (result == DialogResult.OK) { int n = menu.returnVal; this.drink[2] = n; } } }