wxTextDataObject ResultData;
ResultData.SetText(txtResults->GetValue());
-
- wxTheClipboard->SetData(&ResultData);
+
+ wxTheClipboard->Clear();
+ wxTheClipboard->AddData(&ResultData);
wxTheClipboard->Close();
+ wxTheClipboard->Flush();
wxMessageBox(_("The results have been copied to the clipboard."), _("Results copied to clipboard"));
this->Close();
}
-void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
+void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc, int ImportCount, int ImportErrorCount)
{
wxString ResultDataText;
ResultDataText.Append(iter->second + wxT("\n"));
}
+
+ // Display the results in the form.
+
+ txtResults->SetValue(ResultDataText);
+ lblText->SetLabel(wxString::Format(_("%i contacts imported. %i contacts had errors and could not be imported."), ImportCount, ImportErrorCount));
+
+}
-}
\ No newline at end of file
public:
/** Constructor */
frmImportResults( wxWindow* parent );
- void LoadData(std::map<int,wxString> *ResultDataInc);
+ void LoadData(std::map<int,wxString> *ResultDataInc, int ImportCount, int ImportErrorCount);
//// end generated class members
};