Пример #1
0
        private void BtnEdit_Click(object sender, RoutedEventArgs e)
        {
            FormRecipe formRecipe = new FormRecipe(Recipes);

            formRecipe.Owner = this;
            formRecipe.ShowDialog();
        }
Пример #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();
        }