private void AddRecipeButton_Click(object sender, EventArgs e) { RecipeFrm ef = new RecipeFrm(SQLConnection, "Add Recipe"); ef.ShowDialog(); FillListBox(); ef.Dispose(); }
private void RecipelistBox_DoubleClick(object sender, EventArgs e) { ListBox test = (ListBox)sender; RecipeFrm ef = new RecipeFrm(ids[test.SelectedIndex], SQLConnection, "Edit / Print Recipe"); ef.ShowDialog(); FillListBox(); ef.Dispose(); }