예제 #1
0
        private void AddRecipeButton_Click(object sender, EventArgs e)
        {
            RecipeFrm ef = new RecipeFrm(SQLConnection, "Add Recipe");

            ef.ShowDialog();
            FillListBox();
            ef.Dispose();
        }
예제 #2
0
        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();
        }