private void addMomButton_Click(object sender, RoutedEventArgs e) { try { bl.addMother(mom); this.Close(); } catch (Exception rr) { MessageBox.Show(rr.ToString()); } }