void HttpSnaffle::FetchWholeFile(std::string objectPath, std::ostream& out) { StartFetch(objectPath); int value = 1; while (value != 0) { value = FetchMore(out); } }
void StatDialog::OnCalculate(wxCommandEvent &event) { if (m_draw == NULL) { wxMessageBox(_("You need to choose draw first"), _T("Draw missing"), wxOK | wxICON_INFORMATION, this); return; } if (m_start_time > m_end_time) { wxMessageBox(_("Start date must be less than or equal to end date"), _("Invalid date"), wxICON_INFORMATION | wxOK, this); return; } StartFetch(); }