private void updateChild_Click(object sender, RoutedEventArgs e) { try { bl.updateChild(childTemp); this.Close(); } catch (Exception r) { MessageBox.Show(r.Message); } }