Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Introduced simplified LoadKind.
[xestiaab/.git] / source / contacteditor / frmContactEditor-LoadGroup.cpp
index 2ba020c..516b1cc 100644 (file)
 #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")){
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