Exemplo n.º 1
0
        private void BtnEdit_Click(object sender, RoutedEventArgs e)
        {
            FormRecipe formRecipe = new FormRecipe(Recipes);

            formRecipe.Owner = this;
            formRecipe.ShowDialog();
        }
Exemplo n.º 2
0
        private void BtnNewRecipe_Click(object sender, RoutedEventArgs e)
        {
            // Start with a blank Recipe
            Recipes.Current = new Recipe();
            FormRecipe formRecipe = new FormRecipe(Recipes);

            formRecipe.Owner = this;
            formRecipe.ShowDialog();
        }