+}
+
+void frmMain::ShowImportResults( wxCommandEvent &event ){
+
+ // Show the results of importing contacts.
+
+ std::map<int,wxString> *ResultData = (std::map<int,wxString>*)event.GetClientData();
+
+ frmImportResults *frmIR = new frmImportResults(this);
+ frmIR->LoadData(ResultData, event.GetInt(), (int)event.GetExtraLong());
+ frmIR->ShowModal();
+
+ delete frmIR;
+ frmIR = NULL;
+
+ delete ResultData;
+ ResultData = NULL;
+
+}
+
+void frmMain::ReloadContactList( wxCommandEvent &event ){
+
+ // Check if the account name given is the current
+ // account selected.
+
+ if (ActiveAccount == event.GetString()){
+
+ wxTreeEvent NullEvent;
+ LoadContactList(NullEvent);
+
+ }
+
+}
+
+void frmMain::ShowContactMenu( wxMouseEvent& event ){
+
+ // Show the contact menu when a right click occurs
+ // in the contacts list.
+
+ bool EnableRefresh = FALSE;
+
+ if (!ActiveAccount.IsEmpty()){
+
+ EnableRefresh = TRUE;
+
+ }
+
+ ContactMenu->SetupPointers(this, lstContacts, EnableRefresh);
+
+ this->PopupMenu(ContactMenu->MenuPointer(), wxDefaultPosition);
+
+}
+
+void frmMain::ResetContactInfo(){
+
+ // Reset the contact information to an empty page.
+
+ wxString EmptyPage = wxT("");
+ htmContactData->SetPage(EmptyPage);
+ AccCtrl->SetValue("");
+