| 1249 | } |
| 1250 | |
| 1251 | void OpenEIUtilityRateDialog::QueryUtilities() |
| 1252 | { |
| 1253 | lblStatus->SetLabel("Loading utility companies..."); |
| 1254 | wxString err; |
| 1255 | wxBusyInfo busy("Getting list of utility companies...", this); |
| 1256 | if (!api.QueryUtilityCompanies(mUtilityCompanies, &err)) |
| 1257 | { |
| 1258 | busy.~wxBusyInfo(); |
| 1259 | lstUtilities->Clear(); |
| 1260 | wxMessageBox("Error Getting List of Utility Companies\n\n" + err, "URDB Download Message"); |
| 1261 | return; |
| 1262 | } |
| 1263 | |
| 1264 | lstUtilities->Freeze(); |
| 1265 | lstUtilities->Clear(); |
| 1266 | lstUtilities->Append(mUtilityCompanies); |
| 1267 | lstUtilities->Thaw(); |
| 1268 | |
| 1269 | lblStatus->SetLabel("Ready."); |
| 1270 | lblUtilityCount->SetLabel(wxString::Format("%d utilities", (int)lstUtilities->Count())); |
| 1271 | |
| 1272 | } |
| 1273 | |
| 1274 | void OpenEIUtilityRateDialog::QueryUtilitiesByZipCode(wxString *err) |
| 1275 | { |
nothing calls this directly
no test coverage detected