private void btnCase_AddCourt_Click(object sender, RoutedEventArgs e) { addNewCourt newCourt = new addNewCourt(); newCourt.ShowDialog(); courtList = new CourtDA().getAllCourts(); cbCaseCourtType.DataContext = courtList; cbCaseCourtCity.DataContext = courtList; cbCaseCourtType.SelectedValue = type; cbCaseCourtCity.SelectedValue = city; }
private void btnCase_AddCourt_Click(object sender, RoutedEventArgs e) { addNewCourt newCourt = new addNewCourt(); newCourt.ShowDialog(); }