Esempio n. 1
0
        private void BtnView_Click(object sender, RoutedEventArgs e)
        {
            ViewRecipe viewRecipe = new ViewRecipe(Recipes);

            viewRecipe.Owner = this;
            viewRecipe.ShowDialog();
        }
Esempio n. 2
0
        private void BtnView_Click(object sender, RoutedEventArgs e)
        {
            Recipes.Current = (Recipe)LbResults.SelectedItem;
            Close();

            ViewRecipe viewRecipe = new ViewRecipe(Recipes);

            viewRecipe.Owner = Owner;
            viewRecipe.ShowDialog();
        }