コード例 #1
0
        private void btn_Back_Click(object sender, EventArgs e)
        {
            AddIngredientsForm ingredientsForm = new AddIngredientsForm(recipe, RecipeDataSet);

            this.Hide();
            ingredientsForm.ShowDialog();
            this.Close();
        }
コード例 #2
0
        private void btn_Next_Click(object sender, EventArgs e)
        {
            recipe = CreateRecipe();
            updateTable();
            recipe.recipeID = recipeID;



            AddIngredientsForm addIngredientsForm = new AddIngredientsForm(recipe, recipeData);

            //addIngredientsForm.RecipeDataSet = this.recipeData;
            this.Hide();
            //ingredientsForm.Show();
            addIngredientsForm.ShowDialog();
            this.Close();
        }
コード例 #3
0
        private void btn_Next_Click(object sender, EventArgs e)
        {
            RecipeDataSet ds = new RecipeDataSet();

            DataRow row = ds.Tables["recipeTable"].NewRow();

            row["recipeName"]        = txt_RecipeName.Text;
            row["recipeCategory"]    = cmb_Category.Text;
            row["recipeDescription"] = txt_Description.Text;
            ds.RecipeTable.Rows.Add(row);

            AddIngredientsForm addIngredientsForm = new AddIngredientsForm(row["recipeID"].ToString(), txt_RecipeName.Text);

            this.Hide();
            addIngredientsForm.ShowDialog();
            this.Close();
        }