public AddOrEditFoodView(string selectedFoodName, int fooIndex) { InitializeComponent(); index = fooIndex; Food selected = InfoStore.getFoodByName(selectedFoodName); txtDesc.Text = selected.Description; txtName.Text = selected.Name; }
public AddOrEditFoodView(string selectedFoodName, int fooIndex) { InitializeComponent(); index = fooIndex; Food selected = InfoStore.getFoodByName(selectedFoodName); txtDesc.Text = selected.Description; txtName.Text = selected.Name; }