private void refreshLocations() { currentPerson.Locations = ComplexQueryHelper.GetLocationsForPerson(currentPerson.Email); available = BusinessLayer.Classes.Location.Select().Except(currentPerson.Locations).ToList(); dgvAvailable.DataSource = new AggregatedPropertyBindingList <Location>(available); dgvUsed.DataSource = new AggregatedPropertyBindingList <Location>(currentPerson.Locations); }
private void updateLocationsTable() { locations = ComplexQueryHelper.GetLocationsForPerson(lstClients.Text); dgvLocation.DataSource = new AggregatedPropertyBindingList <Location>(locations); }