private void EditBtn_Click(object sender, RoutedEventArgs e) { ChilAdd DDW = new ChilAdd((sender as Button).DataContext as Child, 1); DDW.Show(); }
private void add_Click(object sender, RoutedEventArgs e) { ChilAdd Win = new ChilAdd((sender as Button).DataContext as Child, 1); Win.Show(); }