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