MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / QueryUtilities

Method QueryUtilities

src/urdb.cpp:1251–1272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249}
1250
1251void 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
1274void OpenEIUtilityRateDialog::QueryUtilitiesByZipCode(wxString *err)
1275{

Callers

nothing calls this directly

Calls 4

QueryUtilityCompaniesMethod · 0.80
CountMethod · 0.80
SetLabelMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected