private void btn_Back_Click(object sender, EventArgs e) { AddDirectionsForm addDirectionsForm = new AddDirectionsForm(recipe, dataSet); this.Hide(); addDirectionsForm.ShowDialog(); this.Close(); }
private void btn_AddDirections_Click(object sender, EventArgs e) { recipe.ingredients = ingredients; updateTable(ingredients); AddDirectionsForm addDirectionsForm = new AddDirectionsForm(recipe, RecipeDataSet); this.Hide(); addDirectionsForm.ShowDialog(); this.Close(); }