private void addChildButton_Click(object sender, RoutedEventArgs e) { newChild newChildd = new newChild(); newChildd.Show(); mainGrid.DataContext = mother1; }
private void addChild_Click(object sender, RoutedEventArgs e) { newChild ch = new newChild(mother.id); ch.Show(); }