示例#1
0
 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);
 }
示例#2
0
 private void updateLocationsTable()
 {
     locations = ComplexQueryHelper.GetLocationsForPerson(lstClients.Text);
     dgvLocation.DataSource = new AggregatedPropertyBindingList <Location>(locations);
 }