예제 #1
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         bl.addChild(childToAdd);
         childToAdd       = new BE.Child();
         this.DataContext = childToAdd;
         MessageBox.Show("ילד נוסף בהצלחה");
         Close();
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }
 private void addChildButtom_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         child.lastName = mom.LasNameMom;
         bl.addChild(child);
         MessageBox.Show("ילד נוסף בהצלחה");
         child = new BE.Child();
         addChildTab.DataContext   = child;
         comboBoxMom.SelectedIndex = -1;
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }