Ejemplo n.º 1
0
        private void SaveBtn_Click(object sender, RoutedEventArgs e)
        {
            var    title       = InputTitle.Text;
            var    url         = InputUrl.Text;
            var    image       = FileInput.Text;
            var    description = InputDescription.Text;
            Recipe recipe      = new Recipe(title, url, image, description, steps);

            RecipeDAO.AddRecipe(recipe);
            MessageBox.Show("Success");
            this.Close();
        }