Exemple #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {        //changes childs info-adds special need
     try
     {
         help = this.TextBox.Text;                      //help contans what is curently in textbox
         C    = (((BE.Child) this.childIdComboBox.SelectedItem));
         bl.ChangeInfoChild(C, help, true);             //adds special need
         this.TextBox.ClearValue(TextBox.TextProperty); //emptys the textbox
         this.checkAdd.IsChecked = false;               //changes checkbox to not be checked
     }
     catch (FormatException)
     {
         MessageBox.Show("check your input and try again");
     }
     catch (Exception ex2)
     {
         MessageBox.Show(ex2.Message);
     }
 }