Updater() 공개 메소드

public Updater ( System.Windows.Controls.TextBlock TB ) : void
TB System.Windows.Controls.TextBlock
리턴 void
예제 #1
0
 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);
     }
 }
예제 #2
0
 private void JudgeRecipeBtn_Click(object sender, RoutedEventArgs e)
 {
     _Con.Updater(jr.AllRecipeTextBox);
     RecipeFrame.Content = jr;
 }