private void ReadRecipeExecute() { try { if (recipe != null) { recipe = service.GetSelectedRecipe(recipe.recipeId); ShowRecipe showRecipe = new ShowRecipe(recipe); showRecipe.ShowDialog(); } else { MessageBox.Show("Please select the recipe that you want to read."); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }