int XTokenCount = 0;
//int intValueSeek = 1;
+ // Process the contact type (KIND) (frmContactEditor-LoadGroup.cpp)
+
+ LoadKind(&ContactEditorData.ContactKind);
+
// Process the Birthday (BDAY) (frmContactEditor-LoadBADays.cpp)
LoadBirthday(&ContactEditorData.Birthday, &ContactEditorData.BirthdayText);
VersionProcessed = TRUE;
- } if (wxSProperty == wxT("KIND") && KindProcessed == FALSE){
+ }/* if (wxSProperty == wxT("KIND") && KindProcessed == FALSE){
// See frmContactEditor-LoadGroup.cpp
LoadKind(wxSPropertySeg2);
- } else if (wxSProperty == wxT("MEMBER")){
+ }*/ else if (wxSProperty == wxT("MEMBER")){
// See frmContactEditor-LoadGroup.cpp
#include "../common/dirs.h"
#include <wx/dir.h>
+void frmContactEditor::LoadKind(ContactKindType *KindType){
+
+ std::cerr << *KindType << std::endl;
+
+ switch (*KindType){
+ case CONTACTKIND_INDIVIDUAL:
+ cmbType->SetSelection(1);
+ break;
+ case CONTACTKIND_GROUP:
+ cmbType->SetSelection(2);
+ break;
+ case CONTACTKIND_ORGANISATION:
+ cmbType->SetSelection(3);
+ break;
+ case CONTACTKIND_LOCATION:
+ cmbType->SetSelection(4);
+ break;
+ case CONTACTKIND_NONE:
+ cmbType->SetSelection(0);
+ break;
+ }
+
+ wxCommandEvent nullevent;
+
+ UpdateMembersTab(nullevent);
+
+}
+
void frmContactEditor::LoadKind(wxString KindType){
if (KindType == wxT("individual")){
void LoadGender(wxString *GenderComponent, wxString *GenderIdentity);
void LoadBirthday(wxString *BirthdayData, bool *BirthdayText);
void LoadAnniversary(wxString *AnniversaryData, bool *AnniversaryText);
+ void LoadKind(ContactKindType *KindType);
int intValueSeek = 1;
bool IsGroup = FALSE;