void frmContactEditor::AddGroup( wxCommandEvent& event )
{
- int intResult = 0;
+ int intResult = 0;
- XABViewMode XVMData = MainPtr->GetViewMode();
+ XABViewMode XVMData = MainPtr->GetViewMode();
- frmContactEditorGroup *frameCEGroup = new frmContactEditorGroup ( this );
- frameCEGroup->SetEditorMode(FALSE, XVMData);
- intResult = GetLastInt(&ContactEditorData.GroupsList);
- frameCEGroup->SetupPointers(&ContactEditorData.GroupsList,
- lboGroups,
- wxSContactAccount,
- intValueSeek);
- frameCEGroup->ShowModal();
- delete frameCEGroup;
- frameCEGroup = NULL;
+ frmContactEditorGroup *frameCEGroup = new frmContactEditorGroup ( this );
+ frameCEGroup->SetEditorMode(FALSE, XVMData);
+ intResult = GetLastInt(&ContactEditorData.GroupsList);
+ frameCEGroup->SetupPointers(&ContactEditorData.GroupsList,
+ lboGroups,
+ wxSContactAccount,
+ intValueSeek);
+ frameCEGroup->ShowModal();
+ delete frameCEGroup;
+ frameCEGroup = NULL;
}
void frmContactEditor::ModifyGroup( wxCommandEvent& event )
{
- return;
+ return;
}
void frmContactEditor::DeleteGroup( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboGroups,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboGroups,
+ &longSelected,
+ &intSelectedData)){
+ return;
+ }
- lboGroups->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData, &ContactEditorData.GroupsList);
+ lboGroups->DeleteItem(longSelected);
+ DeleteMapData(intSelectedData, &ContactEditorData.GroupsList);
+
}
\ No newline at end of file