Beispiel #1
0
 private void loadAgents()
 {
     //Load a list of agent selections
     try {
         AgentDS agentDS = new AgentDS();
         AgentDS ds      = CustomerProxy.GetAgents(this.cboCompany.SelectedValue.ToString().PadLeft(6, '0').Substring(3, 3));
         agentDS.Merge(ds);
         this.cboLocation.DisplayMember = "AgentTable.AgentSummary";
         this.cboLocation.ValueMember   = "AgentTable.AgentNumber";
         this.cboLocation.DataSource    = agentDS;
     }
     catch (Exception ex) { throw new ControlException("Unexpected error while loading company agents.", ex); }
 }