private void btnUpdateRelationships_Click(object sender, RoutedEventArgs e) { btnUpdateRelationships.IsEnabled = false; bizRelationship.UpdateRelationships(dtgRelationships.ItemsSource as List <RelationshipDTO>); btnUpdateRelationships.IsEnabled = true; }