public Updater ( System.Windows.Controls.TextBlock TB ) : void | ||
TB | System.Windows.Controls.TextBlock | |
Результат | void |
private void DeleteRecipeBtn_Click(object sender, RoutedEventArgs e) { try { if (_Con.DeleteRecipe(int.Parse(IDtoDelete.Text))) { RecipeInfoText.Text = "Recipe deleted"; } else { RecipeInfoText.Text = "Recipe not found, therefore nothing was deleted"; } } catch (Exception ex) { MessageBox.Show("Enter only numbers as ID. " + ex.Message, "Error"); RecipeInfoText.Text = "Recipe not found, therefore nothing was deleted"; } finally { _Con.Updater(AllRecipeTextBox); } }
private void JudgeRecipeBtn_Click(object sender, RoutedEventArgs e) { _Con.Updater(jr.AllRecipeTextBox); RecipeFrame.Content = jr; }