Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Display results for importing contacts.
[xestiaab/.git] / source / import / frmImportResults.cpp
index 3dc09d4..3280503 100644 (file)
@@ -20,9 +20,11 @@ void frmImportResults::CopyClipboard( wxCommandEvent& event )
                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"));
        
@@ -39,7 +41,7 @@ void frmImportResults::CloseWindow( wxCommandEvent& event )
        this->Close();
 }
 
-void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
+void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc, int ImportCount, int ImportErrorCount)
 {
 
        wxString ResultDataText;
@@ -50,5 +52,11 @@ void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
                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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy