void frmContactEditor::AddBusinessNickname( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
- frameCENickname->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessNicknamesList);
- frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList,
- &ContactEditorData.BusinessNicknamesListAltID,
- &ContactEditorData.BusinessNicknamesListPID,
- &ContactEditorData.BusinessNicknamesListType,
- &ContactEditorData.BusinessNicknamesListLanguage,
- &ContactEditorData.BusinessNicknamesListTokens,
- &ContactEditorData.BusinessNicknamesListPref,
- lboBusinessNicknames,
- (intValueSeek));
- frameCENickname->ShowModal();
- delete frameCENickname;
- frameCENickname = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
+ frameCENickname->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessNicknamesList);
+ frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList,
+ &ContactEditorData.BusinessNicknamesListAltID,
+ &ContactEditorData.BusinessNicknamesListPID,
+ &ContactEditorData.BusinessNicknamesListType,
+ &ContactEditorData.BusinessNicknamesListLanguage,
+ &ContactEditorData.BusinessNicknamesListTokens,
+ &ContactEditorData.BusinessNicknamesListPref,
+ lboBusinessNicknames,
+ (intValueSeek));
+ frameCENickname->ShowModal();
+ delete frameCENickname;
+ frameCENickname = NULL;
+
}
void frmContactEditor::ModifyBusinessNickname( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessNicknames,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
- frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList,
- &ContactEditorData.BusinessNicknamesListAltID,
- &ContactEditorData.BusinessNicknamesListPID,
- &ContactEditorData.BusinessNicknamesListType,
- &ContactEditorData.BusinessNicknamesListLanguage,
- &ContactEditorData.BusinessNicknamesListTokens,
- &ContactEditorData.BusinessNicknamesListPref,
- lboBusinessNicknames,
- intSelectedData);
- frameCENickname->SetEditorMode(TRUE, CE_WORK);
- frameCENickname->ShowModal();
- delete frameCENickname;
- frameCENickname = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessNicknames,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
+ frameCENickname->SetupPointers(&ContactEditorData.BusinessNicknamesList,
+ &ContactEditorData.BusinessNicknamesListAltID,
+ &ContactEditorData.BusinessNicknamesListPID,
+ &ContactEditorData.BusinessNicknamesListType,
+ &ContactEditorData.BusinessNicknamesListLanguage,
+ &ContactEditorData.BusinessNicknamesListTokens,
+ &ContactEditorData.BusinessNicknamesListPref,
+ lboBusinessNicknames,
+ intSelectedData);
+ frameCENickname->SetEditorMode(TRUE, CE_WORK);
+ frameCENickname->ShowModal();
+ delete frameCENickname;
+ frameCENickname = NULL;
+
}
void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessNicknames,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- lboBusinessNicknames->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData,
- &ContactEditorData.BusinessNicknamesList,
- &ContactEditorData.BusinessNicknamesListLanguage,
- &ContactEditorData.BusinessNicknamesListAltID,
- &ContactEditorData.BusinessNicknamesListPID,
- &ContactEditorData.BusinessNicknamesListTokens,
- &ContactEditorData.BusinessNicknamesListType,
- &ContactEditorData.BusinessNicknamesListPref);
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessNicknames,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ lboBusinessNicknames->DeleteItem(longSelected);
+
+ DeleteMapData(intSelectedData,
+ &ContactEditorData.BusinessNicknamesList,
+ &ContactEditorData.BusinessNicknamesListLanguage,
+ &ContactEditorData.BusinessNicknamesListAltID,
+ &ContactEditorData.BusinessNicknamesListPID,
+ &ContactEditorData.BusinessNicknamesListTokens,
+ &ContactEditorData.BusinessNicknamesListType,
+ &ContactEditorData.BusinessNicknamesListPref);
+
}
void frmContactEditor::AddBusinessAddress( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
- frameCEAddress->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessAddressList);
- frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList,
- &ContactEditorData.BusinessAddressListTown,
- &ContactEditorData.BusinessAddressListCounty,
- &ContactEditorData.BusinessAddressListPostCode,
- &ContactEditorData.BusinessAddressListCountry,
- &ContactEditorData.BusinessAddressListLabel,
- &ContactEditorData.BusinessAddressListLang,
- &ContactEditorData.BusinessAddressListAltID,
- &ContactEditorData.BusinessAddressListPID,
- &ContactEditorData.BusinessAddressListTokens,
- &ContactEditorData.BusinessAddressListGeo,
- &ContactEditorData.BusinessAddressListTimezone,
- &ContactEditorData.BusinessAddressListType,
- &ContactEditorData.BusinessAddressListMediatype,
- &ContactEditorData.BusinessAddressListPref,
- lboBusinessAddresses,
- (intValueSeek));
- frameCEAddress->ShowModal();
- delete frameCEAddress;
- frameCEAddress = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
+ frameCEAddress->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessAddressList);
+ frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList,
+ &ContactEditorData.BusinessAddressListTown,
+ &ContactEditorData.BusinessAddressListCounty,
+ &ContactEditorData.BusinessAddressListPostCode,
+ &ContactEditorData.BusinessAddressListCountry,
+ &ContactEditorData.BusinessAddressListLabel,
+ &ContactEditorData.BusinessAddressListLang,
+ &ContactEditorData.BusinessAddressListAltID,
+ &ContactEditorData.BusinessAddressListPID,
+ &ContactEditorData.BusinessAddressListTokens,
+ &ContactEditorData.BusinessAddressListGeo,
+ &ContactEditorData.BusinessAddressListTimezone,
+ &ContactEditorData.BusinessAddressListType,
+ &ContactEditorData.BusinessAddressListMediatype,
+ &ContactEditorData.BusinessAddressListPref,
+ lboBusinessAddresses,
+ (intValueSeek));
+ frameCEAddress->ShowModal();
+ delete frameCEAddress;
+ frameCEAddress = NULL;
+
}
void frmContactEditor::ModifyBusinessAddress( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessAddresses,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
- frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList,
- &ContactEditorData.BusinessAddressListTown,
- &ContactEditorData.BusinessAddressListCounty,
- &ContactEditorData.BusinessAddressListPostCode,
- &ContactEditorData.BusinessAddressListCountry,
- &ContactEditorData.BusinessAddressListLabel,
- &ContactEditorData.BusinessAddressListLang,
- &ContactEditorData.BusinessAddressListAltID,
- &ContactEditorData.BusinessAddressListPID,
- &ContactEditorData.BusinessAddressListTokens,
- &ContactEditorData.BusinessAddressListGeo,
- &ContactEditorData.BusinessAddressListTimezone,
- &ContactEditorData.BusinessAddressListType,
- &ContactEditorData.BusinessAddressListMediatype,
- &ContactEditorData.BusinessAddressListPref,
- lboBusinessAddresses,
- intSelectedData);
- frameCEAddress->SetEditorMode(TRUE, CE_WORK);
- frameCEAddress->ShowModal();
- delete frameCEAddress;
- frameCEAddress = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessAddresses,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
+ frameCEAddress->SetupPointers(&ContactEditorData.BusinessAddressList,
+ &ContactEditorData.BusinessAddressListTown,
+ &ContactEditorData.BusinessAddressListCounty,
+ &ContactEditorData.BusinessAddressListPostCode,
+ &ContactEditorData.BusinessAddressListCountry,
+ &ContactEditorData.BusinessAddressListLabel,
+ &ContactEditorData.BusinessAddressListLang,
+ &ContactEditorData.BusinessAddressListAltID,
+ &ContactEditorData.BusinessAddressListPID,
+ &ContactEditorData.BusinessAddressListTokens,
+ &ContactEditorData.BusinessAddressListGeo,
+ &ContactEditorData.BusinessAddressListTimezone,
+ &ContactEditorData.BusinessAddressListType,
+ &ContactEditorData.BusinessAddressListMediatype,
+ &ContactEditorData.BusinessAddressListPref,
+ lboBusinessAddresses,
+ intSelectedData);
+ frameCEAddress->SetEditorMode(TRUE, CE_WORK);
+ frameCEAddress->ShowModal();
+ delete frameCEAddress;
+ frameCEAddress = NULL;
+
}
void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessAddresses,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- lboBusinessAddresses->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessAddressList,
- &ContactEditorData.BusinessAddressListTown, &ContactEditorData.BusinessAddressListCounty,
- &ContactEditorData.BusinessAddressListPostCode, &ContactEditorData.BusinessAddressListCountry,
- &ContactEditorData.BusinessAddressList, &ContactEditorData.BusinessAddressListLabel,
- &ContactEditorData.BusinessAddressListLang, &ContactEditorData.BusinessAddressListAltID,
- &ContactEditorData.BusinessAddressListPID, &ContactEditorData.BusinessAddressListTokens,
- &ContactEditorData.BusinessAddressListGeo, &ContactEditorData.BusinessAddressListTimezone,
- &ContactEditorData.BusinessAddressListType, &ContactEditorData.BusinessAddressListMediatype,
- &ContactEditorData.BusinessAddressListPref);
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessAddresses,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ lboBusinessAddresses->DeleteItem(longSelected);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessAddressList,
+ &ContactEditorData.BusinessAddressListTown, &ContactEditorData.BusinessAddressListCounty,
+ &ContactEditorData.BusinessAddressListPostCode, &ContactEditorData.BusinessAddressListCountry,
+ &ContactEditorData.BusinessAddressList, &ContactEditorData.BusinessAddressListLabel,
+ &ContactEditorData.BusinessAddressListLang, &ContactEditorData.BusinessAddressListAltID,
+ &ContactEditorData.BusinessAddressListPID, &ContactEditorData.BusinessAddressListTokens,
+ &ContactEditorData.BusinessAddressListGeo, &ContactEditorData.BusinessAddressListTimezone,
+ &ContactEditorData.BusinessAddressListType, &ContactEditorData.BusinessAddressListMediatype,
+ &ContactEditorData.BusinessAddressListPref);
}
void frmContactEditor::AddBusinessEmail( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
- frameCEEmail->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessAddressList);
- frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList,
- &ContactEditorData.BusinessEmailListAltID,
- &ContactEditorData.BusinessEmailListPID,
- &ContactEditorData.BusinessEmailListType,
- &ContactEditorData.BusinessEmailListTokens,
- &ContactEditorData.BusinessEmailListPref,
- lboBusinessEmail,
- (intValueSeek));
- frameCEEmail->ShowModal();
- delete frameCEEmail;
- frameCEEmail = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
+ frameCEEmail->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessAddressList);
+ frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList,
+ &ContactEditorData.BusinessEmailListAltID,
+ &ContactEditorData.BusinessEmailListPID,
+ &ContactEditorData.BusinessEmailListType,
+ &ContactEditorData.BusinessEmailListTokens,
+ &ContactEditorData.BusinessEmailListPref,
+ lboBusinessEmail,
+ (intValueSeek));
+ frameCEEmail->ShowModal();
+ delete frameCEEmail;
+ frameCEEmail = NULL;
+
}
void frmContactEditor::ModifyBusinessEmail( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessEmail,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
- frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList,
- &ContactEditorData.BusinessEmailListAltID,
- &ContactEditorData.BusinessEmailListPID,
- &ContactEditorData.BusinessEmailListType,
- &ContactEditorData.BusinessEmailListTokens,
- &ContactEditorData.BusinessEmailListPref,
- lboBusinessEmail,
- intSelectedData);
- frameCEEmail->SetEditorMode(TRUE, CE_WORK);
- frameCEEmail->ShowModal();
- delete frameCEEmail;
- frameCEEmail = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessEmail,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
+ frameCEEmail->SetupPointers(&ContactEditorData.BusinessEmailList,
+ &ContactEditorData.BusinessEmailListAltID,
+ &ContactEditorData.BusinessEmailListPID,
+ &ContactEditorData.BusinessEmailListType,
+ &ContactEditorData.BusinessEmailListTokens,
+ &ContactEditorData.BusinessEmailListPref,
+ lboBusinessEmail,
+ intSelectedData);
+ frameCEEmail->SetEditorMode(TRUE, CE_WORK);
+ frameCEEmail->ShowModal();
+ delete frameCEEmail;
+ frameCEEmail = NULL;
+
}
void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessEmail,
+ if (!GetSelectedItem(lboBusinessEmail,
&longSelected,
&intSelectedData)){
- return;
- }
+
+ return;
+
+ }
- lboBusinessEmail->DeleteItem(longSelected);
+ lboBusinessEmail->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessEmailList,
- &ContactEditorData.BusinessEmailListAltID, &ContactEditorData.BusinessEmailListPID,
- &ContactEditorData.BusinessEmailListType, &ContactEditorData.BusinessEmailListTokens,
- &ContactEditorData.BusinessEmailListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessEmailList,
+ &ContactEditorData.BusinessEmailListAltID, &ContactEditorData.BusinessEmailListPID,
+ &ContactEditorData.BusinessEmailListType, &ContactEditorData.BusinessEmailListTokens,
+ &ContactEditorData.BusinessEmailListPref);
}
void frmContactEditor::AddBusinessIM( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
- frameCEIM->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessIMList);
- frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList,
- &ContactEditorData.BusinessIMListAltID,
- &ContactEditorData.BusinessIMListPID,
- &ContactEditorData.BusinessIMListType,
- &ContactEditorData.BusinessIMListTypeInfo,
- &ContactEditorData.BusinessIMListTokens,
- &ContactEditorData.BusinessIMListMediatype,
- &ContactEditorData.BusinessIMListPref,
- lboBusinessIM,
- (intValueSeek));
- frameCEIM->ShowModal();
- delete frameCEIM;
- frameCEIM = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
+ frameCEIM->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessIMList);
+ frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList,
+ &ContactEditorData.BusinessIMListAltID,
+ &ContactEditorData.BusinessIMListPID,
+ &ContactEditorData.BusinessIMListType,
+ &ContactEditorData.BusinessIMListTypeInfo,
+ &ContactEditorData.BusinessIMListTokens,
+ &ContactEditorData.BusinessIMListMediatype,
+ &ContactEditorData.BusinessIMListPref,
+ lboBusinessIM,
+ (intValueSeek));
+ frameCEIM->ShowModal();
+ delete frameCEIM;
+ frameCEIM = NULL;
+
}
void frmContactEditor::ModifyBusinessIM( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessIM,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
- frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList,
- &ContactEditorData.BusinessIMListAltID,
- &ContactEditorData.BusinessIMListPID,
- &ContactEditorData.BusinessIMListType,
- &ContactEditorData.BusinessIMListTypeInfo,
- &ContactEditorData.BusinessIMListTokens,
- &ContactEditorData.BusinessIMListMediatype,
- &ContactEditorData.BusinessIMListPref,
- lboBusinessIM,
- intSelectedData);
- frameCEIM->SetEditorMode(TRUE, CE_WORK);
- frameCEIM->ShowModal();
- delete frameCEIM;
- frameCEIM = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessIM,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
+ frameCEIM->SetupPointers(&ContactEditorData.BusinessIMList,
+ &ContactEditorData.BusinessIMListAltID,
+ &ContactEditorData.BusinessIMListPID,
+ &ContactEditorData.BusinessIMListType,
+ &ContactEditorData.BusinessIMListTypeInfo,
+ &ContactEditorData.BusinessIMListTokens,
+ &ContactEditorData.BusinessIMListMediatype,
+ &ContactEditorData.BusinessIMListPref,
+ lboBusinessIM,
+ intSelectedData);
+ frameCEIM->SetEditorMode(TRUE, CE_WORK);
+ frameCEIM->ShowModal();
+ delete frameCEIM;
+ frameCEIM = NULL;
+
}
void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessIM,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessIM,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessIM->DeleteItem(longSelected);
+ lboBusinessIM->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessIMList,
- &ContactEditorData.BusinessIMListAltID, &ContactEditorData.BusinessIMListPID,
- &ContactEditorData.BusinessIMListType, &ContactEditorData.BusinessIMListTypeInfo,
- &ContactEditorData.BusinessIMListTokens, &ContactEditorData.BusinessIMListMediatype,
- &ContactEditorData.BusinessIMListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessIMList,
+ &ContactEditorData.BusinessIMListAltID, &ContactEditorData.BusinessIMListPID,
+ &ContactEditorData.BusinessIMListType, &ContactEditorData.BusinessIMListTypeInfo,
+ &ContactEditorData.BusinessIMListTokens, &ContactEditorData.BusinessIMListMediatype,
+ &ContactEditorData.BusinessIMListPref);
}
void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
- frameCETel->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessTelephoneList);
- frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList,
- &ContactEditorData.BusinessTelephoneListAltID,
- &ContactEditorData.BusinessTelephoneListPID,
- &ContactEditorData.BusinessTelephoneListType,
- &ContactEditorData.BusinessTelephoneListTypeInfo,
- &ContactEditorData.BusinessTelephoneListTokens,
- &ContactEditorData.BusinessTelephoneListPref,
- lboBusinessTelephone,
- (intValueSeek));
- frameCETel->ShowModal();
- delete frameCETel;
- frameCETel = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
+ frameCETel->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessTelephoneList);
+ frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList,
+ &ContactEditorData.BusinessTelephoneListAltID,
+ &ContactEditorData.BusinessTelephoneListPID,
+ &ContactEditorData.BusinessTelephoneListType,
+ &ContactEditorData.BusinessTelephoneListTypeInfo,
+ &ContactEditorData.BusinessTelephoneListTokens,
+ &ContactEditorData.BusinessTelephoneListPref,
+ lboBusinessTelephone,
+ (intValueSeek));
+ frameCETel->ShowModal();
+ delete frameCETel;
+ frameCETel = NULL;
+
}
void frmContactEditor::ModifyBusinessTelephone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessTelephone,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
- frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList,
- &ContactEditorData.BusinessTelephoneListAltID,
- &ContactEditorData.BusinessTelephoneListPID,
- &ContactEditorData.BusinessTelephoneListType,
- &ContactEditorData.BusinessTelephoneListTypeInfo,
- &ContactEditorData.BusinessTelephoneListTokens,
- &ContactEditorData.BusinessTelephoneListPref,
- lboBusinessTelephone,
- intSelectedData);
- frameCETel->SetEditorMode(TRUE, CE_WORK);
- frameCETel->ShowModal();
- delete frameCETel;
- frameCETel = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessTelephone,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
+ frameCETel->SetupPointers(&ContactEditorData.BusinessTelephoneList,
+ &ContactEditorData.BusinessTelephoneListAltID,
+ &ContactEditorData.BusinessTelephoneListPID,
+ &ContactEditorData.BusinessTelephoneListType,
+ &ContactEditorData.BusinessTelephoneListTypeInfo,
+ &ContactEditorData.BusinessTelephoneListTokens,
+ &ContactEditorData.BusinessTelephoneListPref,
+ lboBusinessTelephone,
+ intSelectedData);
+ frameCETel->SetEditorMode(TRUE, CE_WORK);
+ frameCETel->ShowModal();
+ delete frameCETel;
+ frameCETel = NULL;
+
}
void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessTelephone,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessTelephone,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessTelephone->DeleteItem(longSelected);
+ lboBusinessTelephone->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessTelephoneList,
- &ContactEditorData.BusinessTelephoneListAltID, &ContactEditorData.BusinessTelephoneListPID,
- &ContactEditorData.BusinessTelephoneListType, &ContactEditorData.BusinessTelephoneListTypeInfo,
- &ContactEditorData.BusinessTelephoneListTokens, &ContactEditorData.BusinessTelephoneListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessTelephoneList,
+ &ContactEditorData.BusinessTelephoneListAltID, &ContactEditorData.BusinessTelephoneListPID,
+ &ContactEditorData.BusinessTelephoneListType, &ContactEditorData.BusinessTelephoneListTypeInfo,
+ &ContactEditorData.BusinessTelephoneListTokens, &ContactEditorData.BusinessTelephoneListPref);
}
void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
- frameCELang->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessLanguageList);
- frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList,
- &ContactEditorData.BusinessLanguageListAltID,
- &ContactEditorData.BusinessLanguageListPID,
- &ContactEditorData.BusinessLanguageListType,
- &ContactEditorData.BusinessLanguageListTokens,
- &ContactEditorData.BusinessLanguageListPref,
- lboBusinessLanguages,
- (intValueSeek));
- frameCELang->ShowModal();
- delete frameCELang;
- frameCELang = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
+ frameCELang->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessLanguageList);
+ frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList,
+ &ContactEditorData.BusinessLanguageListAltID,
+ &ContactEditorData.BusinessLanguageListPID,
+ &ContactEditorData.BusinessLanguageListType,
+ &ContactEditorData.BusinessLanguageListTokens,
+ &ContactEditorData.BusinessLanguageListPref,
+ lboBusinessLanguages,
+ (intValueSeek));
+ frameCELang->ShowModal();
+ delete frameCELang;
+ frameCELang = NULL;
+
}
void frmContactEditor::ModifyBusinessLanguage( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessLanguages,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
- frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList,
- &ContactEditorData.BusinessLanguageListAltID,
- &ContactEditorData.BusinessLanguageListPID,
- &ContactEditorData.BusinessLanguageListType,
- &ContactEditorData.BusinessLanguageListTokens,
- &ContactEditorData.BusinessLanguageListPref,
- lboBusinessLanguages,
- intSelectedData);
- frameCELang->SetEditorMode(TRUE, CE_WORK);
- frameCELang->ShowModal();
- delete frameCELang;
- frameCELang = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessLanguages,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
+ frameCELang->SetupPointers(&ContactEditorData.BusinessLanguageList,
+ &ContactEditorData.BusinessLanguageListAltID,
+ &ContactEditorData.BusinessLanguageListPID,
+ &ContactEditorData.BusinessLanguageListType,
+ &ContactEditorData.BusinessLanguageListTokens,
+ &ContactEditorData.BusinessLanguageListPref,
+ lboBusinessLanguages,
+ intSelectedData);
+ frameCELang->SetEditorMode(TRUE, CE_WORK);
+ frameCELang->ShowModal();
+ delete frameCELang;
+ frameCELang = NULL;
+
}
void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessLanguages,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessLanguages,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessLanguages->DeleteItem(longSelected);
+ lboBusinessLanguages->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessLanguageList,
- &ContactEditorData.BusinessLanguageListAltID, &ContactEditorData.BusinessLanguageListPID,
- &ContactEditorData.BusinessLanguageListType, &ContactEditorData.BusinessLanguageListTokens,
- &ContactEditorData.BusinessLanguageListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessLanguageList,
+ &ContactEditorData.BusinessLanguageListAltID, &ContactEditorData.BusinessLanguageListPID,
+ &ContactEditorData.BusinessLanguageListType, &ContactEditorData.BusinessLanguageListTokens,
+ &ContactEditorData.BusinessLanguageListPref);
}
void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
- frameCETZ->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessTZList);
- frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList,
- &ContactEditorData.BusinessTZListAltID,
- &ContactEditorData.BusinessTZListPID,
- &ContactEditorData.BusinessTZListType,
- &ContactEditorData.BusinessTZListTokens,
- &ContactEditorData.BusinessTZListMediatype,
- &ContactEditorData.BusinessTZListPref,
- lboBusinessTimezones,
- (intValueSeek));
- frameCETZ->ShowModal();
- delete frameCETZ;
- frameCETZ = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
+ frameCETZ->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessTZList);
+ frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList,
+ &ContactEditorData.BusinessTZListAltID,
+ &ContactEditorData.BusinessTZListPID,
+ &ContactEditorData.BusinessTZListType,
+ &ContactEditorData.BusinessTZListTokens,
+ &ContactEditorData.BusinessTZListMediatype,
+ &ContactEditorData.BusinessTZListPref,
+ lboBusinessTimezones,
+ (intValueSeek));
+ frameCETZ->ShowModal();
+ delete frameCETZ;
+ frameCETZ = NULL;
+
}
void frmContactEditor::ModifyBusinessTimezone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessTimezones,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
- frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList,
- &ContactEditorData.BusinessTZListAltID,
- &ContactEditorData.BusinessTZListPID,
- &ContactEditorData.BusinessTZListType,
- &ContactEditorData.BusinessTZListTokens,
- &ContactEditorData.BusinessTZListMediatype,
- &ContactEditorData.BusinessTZListPref,
- lboBusinessTimezones,
- intSelectedData);
- frameCETZ->SetEditorMode(TRUE, CE_WORK);
- frameCETZ->ShowModal();
- delete frameCETZ;
- frameCETZ = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessTimezones,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
+ frameCETZ->SetupPointers(&ContactEditorData.BusinessTZList,
+ &ContactEditorData.BusinessTZListAltID,
+ &ContactEditorData.BusinessTZListPID,
+ &ContactEditorData.BusinessTZListType,
+ &ContactEditorData.BusinessTZListTokens,
+ &ContactEditorData.BusinessTZListMediatype,
+ &ContactEditorData.BusinessTZListPref,
+ lboBusinessTimezones,
+ intSelectedData);
+ frameCETZ->SetEditorMode(TRUE, CE_WORK);
+ frameCETZ->ShowModal();
+ delete frameCETZ;
+ frameCETZ = NULL;
+
}
void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessTimezones,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessTimezones,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessTimezones->DeleteItem(longSelected);
+ lboBusinessTimezones->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessTZList,
- &ContactEditorData.BusinessTZListAltID, &ContactEditorData.BusinessTZListPID,
- &ContactEditorData.BusinessTZListType, &ContactEditorData.BusinessTZListTokens,
- &ContactEditorData.BusinessTZListMediatype, &ContactEditorData.BusinessTZListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessTZList,
+ &ContactEditorData.BusinessTZListAltID, &ContactEditorData.BusinessTZListPID,
+ &ContactEditorData.BusinessTZListType, &ContactEditorData.BusinessTZListTokens,
+ &ContactEditorData.BusinessTZListMediatype, &ContactEditorData.BusinessTZListPref);
}
void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
- frameCEGeo->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessGeographyList);
- frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList,
- &ContactEditorData.BusinessGeographyListAltID,
- &ContactEditorData.BusinessGeographyListPID,
- &ContactEditorData.BusinessGeographyListType,
- &ContactEditorData.BusinessGeographyListDataType,
- &ContactEditorData.BusinessGeographyListTokens,
- &ContactEditorData.BusinessGeographyListMediatype,
- &ContactEditorData.BusinessGeographyListPref,
- lboBusinessGeoposition,
- (intValueSeek));
- frameCEGeo->ShowModal();
- delete frameCEGeo;
- frameCEGeo = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
+ frameCEGeo->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessGeographyList);
+ frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList,
+ &ContactEditorData.BusinessGeographyListAltID,
+ &ContactEditorData.BusinessGeographyListPID,
+ &ContactEditorData.BusinessGeographyListType,
+ &ContactEditorData.BusinessGeographyListDataType,
+ &ContactEditorData.BusinessGeographyListTokens,
+ &ContactEditorData.BusinessGeographyListMediatype,
+ &ContactEditorData.BusinessGeographyListPref,
+ lboBusinessGeoposition,
+ (intValueSeek));
+ frameCEGeo->ShowModal();
+ delete frameCEGeo;
+ frameCEGeo = NULL;
+
}
void frmContactEditor::ModifyBusinessGeoposition( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessGeoposition,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
- frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList,
- &ContactEditorData.BusinessGeographyListAltID,
- &ContactEditorData.BusinessGeographyListPID,
- &ContactEditorData.BusinessGeographyListType,
- &ContactEditorData.BusinessGeographyListDataType,
- &ContactEditorData.BusinessGeographyListTokens,
- &ContactEditorData.BusinessGeographyListMediatype,
- &ContactEditorData.BusinessGeographyListPref,
- lboBusinessGeoposition,
- intSelectedData);
- frameCEGeo->SetEditorMode(TRUE, CE_WORK);
- frameCEGeo->ShowModal();
- delete frameCEGeo;
- frameCEGeo = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessGeoposition,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
+ frameCEGeo->SetupPointers(&ContactEditorData.BusinessGeographyList,
+ &ContactEditorData.BusinessGeographyListAltID,
+ &ContactEditorData.BusinessGeographyListPID,
+ &ContactEditorData.BusinessGeographyListType,
+ &ContactEditorData.BusinessGeographyListDataType,
+ &ContactEditorData.BusinessGeographyListTokens,
+ &ContactEditorData.BusinessGeographyListMediatype,
+ &ContactEditorData.BusinessGeographyListPref,
+ lboBusinessGeoposition,
+ intSelectedData);
+ frameCEGeo->SetEditorMode(TRUE, CE_WORK);
+ frameCEGeo->ShowModal();
+ delete frameCEGeo;
+ frameCEGeo = NULL;
+
}
void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessGeoposition,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- lboBusinessGeoposition->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessGeographyList,
- &ContactEditorData.BusinessGeographyListAltID, &ContactEditorData.BusinessGeographyListPID,
- &ContactEditorData.BusinessGeographyListType, &ContactEditorData.BusinessGeographyListDataType,
- &ContactEditorData.BusinessGeographyListTokens, &ContactEditorData.BusinessGeographyListMediatype,
- &ContactEditorData.BusinessGeographyListPref);
-
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessGeoposition,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ lboBusinessGeoposition->DeleteItem(longSelected);
+
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessGeographyList,
+ &ContactEditorData.BusinessGeographyListAltID, &ContactEditorData.BusinessGeographyListPID,
+ &ContactEditorData.BusinessGeographyListType, &ContactEditorData.BusinessGeographyListDataType,
+ &ContactEditorData.BusinessGeographyListTokens, &ContactEditorData.BusinessGeographyListMediatype,
+ &ContactEditorData.BusinessGeographyListPref);
+
}
void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
- frameCEWeb->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessWebsiteList);
- frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList,
- &ContactEditorData.BusinessWebsiteListAltID,
- &ContactEditorData.BusinessWebsiteListPID,
- &ContactEditorData.BusinessWebsiteListType,
- &ContactEditorData.BusinessWebsiteListTokens,
- &ContactEditorData.BusinessWebsiteListMediatype,
- &ContactEditorData.BusinessWebsiteListPref,
- lboBusinessWebsites,
- (intValueSeek));
- frameCEWeb->ShowModal();
- delete frameCEWeb;
- frameCEWeb = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
+ frameCEWeb->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessWebsiteList);
+ frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList,
+ &ContactEditorData.BusinessWebsiteListAltID,
+ &ContactEditorData.BusinessWebsiteListPID,
+ &ContactEditorData.BusinessWebsiteListType,
+ &ContactEditorData.BusinessWebsiteListTokens,
+ &ContactEditorData.BusinessWebsiteListMediatype,
+ &ContactEditorData.BusinessWebsiteListPref,
+ lboBusinessWebsites,
+ (intValueSeek));
+ frameCEWeb->ShowModal();
+ delete frameCEWeb;
+ frameCEWeb = NULL;
+
}
void frmContactEditor::ModifyBusinessWebsite( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessWebsites,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
- frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList,
- &ContactEditorData.BusinessWebsiteListAltID,
- &ContactEditorData.BusinessWebsiteListPID,
- &ContactEditorData.BusinessWebsiteListType,
- &ContactEditorData.BusinessWebsiteListTokens,
- &ContactEditorData.BusinessWebsiteListMediatype,
- &ContactEditorData.BusinessWebsiteListPref,
- lboBusinessWebsites,
- intSelectedData);
- frameCEWeb->SetEditorMode(TRUE, CE_WORK);
- frameCEWeb->ShowModal();
- delete frameCEWeb;
- frameCEWeb = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessWebsites,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
+ frameCEWeb->SetupPointers(&ContactEditorData.BusinessWebsiteList,
+ &ContactEditorData.BusinessWebsiteListAltID,
+ &ContactEditorData.BusinessWebsiteListPID,
+ &ContactEditorData.BusinessWebsiteListType,
+ &ContactEditorData.BusinessWebsiteListTokens,
+ &ContactEditorData.BusinessWebsiteListMediatype,
+ &ContactEditorData.BusinessWebsiteListPref,
+ lboBusinessWebsites,
+ intSelectedData);
+ frameCEWeb->SetEditorMode(TRUE, CE_WORK);
+ frameCEWeb->ShowModal();
+ delete frameCEWeb;
+ frameCEWeb = NULL;
+
}
void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessWebsites,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessWebsites,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessWebsites->DeleteItem(longSelected);
+ lboBusinessWebsites->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessWebsiteList,
- &ContactEditorData.BusinessWebsiteListAltID, &ContactEditorData.BusinessWebsiteListPID,
- &ContactEditorData.BusinessWebsiteListType, &ContactEditorData.BusinessWebsiteListTokens,
- &ContactEditorData.BusinessWebsiteListMediatype, &ContactEditorData.BusinessWebsiteListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessWebsiteList,
+ &ContactEditorData.BusinessWebsiteListAltID, &ContactEditorData.BusinessWebsiteListPID,
+ &ContactEditorData.BusinessWebsiteListType, &ContactEditorData.BusinessWebsiteListTokens,
+ &ContactEditorData.BusinessWebsiteListMediatype, &ContactEditorData.BusinessWebsiteListPref);
}
void frmContactEditor::AddBusinessTitle( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
- frameCETitle->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessTitleList);
- frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList,
- &ContactEditorData.BusinessTitleListLanguage,
- &ContactEditorData.BusinessTitleListAltID,
- &ContactEditorData.BusinessTitleListPID,
- &ContactEditorData.BusinessTitleListType,
- &ContactEditorData.BusinessTitleListTokens,
- &ContactEditorData.BusinessTitleListPref,
- lboBusinessTitles,
- (intValueSeek));
- frameCETitle->ShowModal();
- delete frameCETitle;
- frameCETitle = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
+ frameCETitle->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessTitleList);
+ frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList,
+ &ContactEditorData.BusinessTitleListLanguage,
+ &ContactEditorData.BusinessTitleListAltID,
+ &ContactEditorData.BusinessTitleListPID,
+ &ContactEditorData.BusinessTitleListType,
+ &ContactEditorData.BusinessTitleListTokens,
+ &ContactEditorData.BusinessTitleListPref,
+ lboBusinessTitles,
+ (intValueSeek));
+ frameCETitle->ShowModal();
+ delete frameCETitle;
+ frameCETitle = NULL;
+
}
void frmContactEditor::ModifyBusinessTitle( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessTitles,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
- frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList,
- &ContactEditorData.BusinessTitleListLanguage,
- &ContactEditorData.BusinessTitleListAltID,
- &ContactEditorData.BusinessTitleListPID,
- &ContactEditorData.BusinessTitleListType,
- &ContactEditorData.BusinessTitleListTokens,
- &ContactEditorData.BusinessTitleListPref,
- lboBusinessTitles,
- intSelectedData);
- frameCETitle->SetEditorMode(TRUE, CE_WORK);
- frameCETitle->ShowModal();
- delete frameCETitle;
- frameCETitle = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessTitles,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
+ frameCETitle->SetupPointers(&ContactEditorData.BusinessTitleList,
+ &ContactEditorData.BusinessTitleListLanguage,
+ &ContactEditorData.BusinessTitleListAltID,
+ &ContactEditorData.BusinessTitleListPID,
+ &ContactEditorData.BusinessTitleListType,
+ &ContactEditorData.BusinessTitleListTokens,
+ &ContactEditorData.BusinessTitleListPref,
+ lboBusinessTitles,
+ intSelectedData);
+ frameCETitle->SetEditorMode(TRUE, CE_WORK);
+ frameCETitle->ShowModal();
+ delete frameCETitle;
+ frameCETitle = NULL;
+
}
void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessTitles,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessTitles,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
- lboTitles->DeleteItem(longSelected);
+ }
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessTitleList,
- &ContactEditorData.BusinessTitleListLanguage, &ContactEditorData.BusinessTitleListAltID,
- &ContactEditorData.BusinessTitleListPID, &ContactEditorData.BusinessTitleListType,
- &ContactEditorData.BusinessTitleListTokens, &ContactEditorData.BusinessTitleListPref);
+ lboTitles->DeleteItem(longSelected);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessTitleList,
+ &ContactEditorData.BusinessTitleListLanguage, &ContactEditorData.BusinessTitleListAltID,
+ &ContactEditorData.BusinessTitleListPID, &ContactEditorData.BusinessTitleListType,
+ &ContactEditorData.BusinessTitleListTokens, &ContactEditorData.BusinessTitleListPref);
+
}
void frmContactEditor::AddBusinessRole( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
- frameCERole->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessRoleList);
- frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList,
- &ContactEditorData.BusinessRoleListLanguage,
- &ContactEditorData.BusinessRoleListAltID,
- &ContactEditorData.BusinessRoleListPID,
- &ContactEditorData.BusinessRoleListType,
- &ContactEditorData.BusinessRoleListTokens,
- &ContactEditorData.BusinessRoleListPref,
- lboBusinessRoles,
- (intValueSeek));
- frameCERole->ShowModal();
- delete frameCERole;
- frameCERole = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
+ frameCERole->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessRoleList);
+ frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList,
+ &ContactEditorData.BusinessRoleListLanguage,
+ &ContactEditorData.BusinessRoleListAltID,
+ &ContactEditorData.BusinessRoleListPID,
+ &ContactEditorData.BusinessRoleListType,
+ &ContactEditorData.BusinessRoleListTokens,
+ &ContactEditorData.BusinessRoleListPref,
+ lboBusinessRoles,
+ (intValueSeek));
+ frameCERole->ShowModal();
+ delete frameCERole;
+ frameCERole = NULL;
+
}
void frmContactEditor::ModifyBusinessRole( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessRoles,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
- frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList,
- &ContactEditorData.BusinessRoleListLanguage,
- &ContactEditorData.BusinessRoleListAltID,
- &ContactEditorData.BusinessRoleListPID,
- &ContactEditorData.BusinessRoleListType,
- &ContactEditorData.BusinessRoleListTokens,
- &ContactEditorData.BusinessRoleListPref,
- lboBusinessRoles,
- intSelectedData);
- frameCERole->SetEditorMode(TRUE, CE_WORK);
- frameCERole->ShowModal();
- delete frameCERole;
- frameCERole = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessRoles,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
+ frameCERole->SetupPointers(&ContactEditorData.BusinessRoleList,
+ &ContactEditorData.BusinessRoleListLanguage,
+ &ContactEditorData.BusinessRoleListAltID,
+ &ContactEditorData.BusinessRoleListPID,
+ &ContactEditorData.BusinessRoleListType,
+ &ContactEditorData.BusinessRoleListTokens,
+ &ContactEditorData.BusinessRoleListPref,
+ lboBusinessRoles,
+ intSelectedData);
+ frameCERole->SetEditorMode(TRUE, CE_WORK);
+ frameCERole->ShowModal();
+ delete frameCERole;
+ frameCERole = NULL;
+
}
void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessRoles,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessRoles,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessRoles->DeleteItem(longSelected);
+ lboBusinessRoles->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessRoleList,
- &ContactEditorData.BusinessRoleListLanguage, &ContactEditorData.BusinessRoleListAltID,
- &ContactEditorData.BusinessRoleListPID, &ContactEditorData.BusinessRoleListType,
- &ContactEditorData.BusinessRoleListTokens, &ContactEditorData.BusinessRoleListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessRoleList,
+ &ContactEditorData.BusinessRoleListLanguage, &ContactEditorData.BusinessRoleListAltID,
+ &ContactEditorData.BusinessRoleListPID, &ContactEditorData.BusinessRoleListType,
+ &ContactEditorData.BusinessRoleListTokens, &ContactEditorData.BusinessRoleListPref);
}
void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
- frameCEOrg->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessOrganisationsList);
- frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList,
- &ContactEditorData.BusinessOrganisationsListLanguage,
- &ContactEditorData.BusinessOrganisationsListSortAs,
- &ContactEditorData.BusinessOrganisationsListAltID,
- &ContactEditorData.BusinessOrganisationsListPID,
- &ContactEditorData.BusinessOrganisationsListType,
- &ContactEditorData.BusinessOrganisationsListTokens,
- &ContactEditorData.BusinessOrganisationsListPref,
- lboBusinessOrganisations,
- (intValueSeek));
- frameCEOrg->ShowModal();
- delete frameCEOrg;
- frameCEOrg = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
+ frameCEOrg->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessOrganisationsList);
+ frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList,
+ &ContactEditorData.BusinessOrganisationsListLanguage,
+ &ContactEditorData.BusinessOrganisationsListSortAs,
+ &ContactEditorData.BusinessOrganisationsListAltID,
+ &ContactEditorData.BusinessOrganisationsListPID,
+ &ContactEditorData.BusinessOrganisationsListType,
+ &ContactEditorData.BusinessOrganisationsListTokens,
+ &ContactEditorData.BusinessOrganisationsListPref,
+ lboBusinessOrganisations,
+ (intValueSeek));
+ frameCEOrg->ShowModal();
+ delete frameCEOrg;
+ frameCEOrg = NULL;
+
}
void frmContactEditor::ModifyBusinessOrganisation( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessOrganisations,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
- frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList,
- &ContactEditorData.BusinessOrganisationsListLanguage,
- &ContactEditorData.BusinessOrganisationsListSortAs,
- &ContactEditorData.BusinessOrganisationsListAltID,
- &ContactEditorData.BusinessOrganisationsListPID,
- &ContactEditorData.BusinessOrganisationsListType,
- &ContactEditorData.BusinessOrganisationsListTokens,
- &ContactEditorData.BusinessOrganisationsListPref,
- lboBusinessOrganisations,
- intSelectedData);
- frameCEOrg->SetEditorMode(TRUE, CE_WORK);
- frameCEOrg->ShowModal();
- delete frameCEOrg;
- frameCEOrg = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessOrganisations,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
+ frameCEOrg->SetupPointers(&ContactEditorData.BusinessOrganisationsList,
+ &ContactEditorData.BusinessOrganisationsListLanguage,
+ &ContactEditorData.BusinessOrganisationsListSortAs,
+ &ContactEditorData.BusinessOrganisationsListAltID,
+ &ContactEditorData.BusinessOrganisationsListPID,
+ &ContactEditorData.BusinessOrganisationsListType,
+ &ContactEditorData.BusinessOrganisationsListTokens,
+ &ContactEditorData.BusinessOrganisationsListPref,
+ lboBusinessOrganisations,
+ intSelectedData);
+ frameCEOrg->SetEditorMode(TRUE, CE_WORK);
+ frameCEOrg->ShowModal();
+ delete frameCEOrg;
+ frameCEOrg = NULL;
+
}
void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
- if (!GetSelectedItem(lboBusinessOrganisations,
- &longSelected,
- &intSelectedData)){
- return;
- }
+ if (!GetSelectedItem(lboBusinessOrganisations,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
- lboBusinessOrganisations->DeleteItem(longSelected);
+ lboBusinessOrganisations->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessOrganisationsList,
- &ContactEditorData.BusinessOrganisationsListLanguage, &ContactEditorData.BusinessOrganisationsListSortAs,
- &ContactEditorData.BusinessOrganisationsListAltID, &ContactEditorData.BusinessOrganisationsListPID,
- &ContactEditorData.BusinessOrganisationsListType, &ContactEditorData.BusinessOrganisationsListTokens,
- &ContactEditorData.BusinessOrganisationsListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessOrganisationsList,
+ &ContactEditorData.BusinessOrganisationsListLanguage, &ContactEditorData.BusinessOrganisationsListSortAs,
+ &ContactEditorData.BusinessOrganisationsListAltID, &ContactEditorData.BusinessOrganisationsListPID,
+ &ContactEditorData.BusinessOrganisationsListType, &ContactEditorData.BusinessOrganisationsListTokens,
+ &ContactEditorData.BusinessOrganisationsListPref);
}
void frmContactEditor::AddBusinessNote( wxCommandEvent& event )
{
- int intResult = 0;
-
- frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
- frameCENote->SetEditorMode(FALSE, CE_WORK);
- intResult = GetLastInt(&ContactEditorData.BusinessNoteList);
- frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList,
- &ContactEditorData.BusinessNoteListLanguage,
- &ContactEditorData.BusinessNoteListAltID,
- &ContactEditorData.BusinessNoteListPID,
- &ContactEditorData.BusinessNoteListType,
- &ContactEditorData.BusinessNoteListTokens,
- &ContactEditorData.BusinessNoteListPref,
- lboBusinessNotes,
- (intValueSeek));
- frameCENote->ShowModal();
- delete frameCENote;
- frameCENote = NULL;
+
+ int intResult = 0;
+
+ frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
+ frameCENote->SetEditorMode(FALSE, CE_WORK);
+ intResult = GetLastInt(&ContactEditorData.BusinessNoteList);
+ frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList,
+ &ContactEditorData.BusinessNoteListLanguage,
+ &ContactEditorData.BusinessNoteListAltID,
+ &ContactEditorData.BusinessNoteListPID,
+ &ContactEditorData.BusinessNoteListType,
+ &ContactEditorData.BusinessNoteListTokens,
+ &ContactEditorData.BusinessNoteListPref,
+ lboBusinessNotes,
+ (intValueSeek));
+ frameCENote->ShowModal();
+ delete frameCENote;
+ frameCENote = NULL;
+
}
void frmContactEditor::ModifyBusinessNote( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessNotes,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
- frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList,
- &ContactEditorData.BusinessNoteListLanguage,
- &ContactEditorData.BusinessNoteListAltID,
- &ContactEditorData.BusinessNoteListPID,
- &ContactEditorData.BusinessNoteListType,
- &ContactEditorData.BusinessNoteListTokens,
- &ContactEditorData.BusinessNoteListPref,
- lboBusinessNotes,
- intSelectedData);
- frameCENote->SetEditorMode(TRUE, CE_WORK);
- frameCENote->ShowModal();
- delete frameCENote;
- frameCENote = NULL;
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessNotes,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
+ frameCENote->SetupPointers(&ContactEditorData.BusinessNoteList,
+ &ContactEditorData.BusinessNoteListLanguage,
+ &ContactEditorData.BusinessNoteListAltID,
+ &ContactEditorData.BusinessNoteListPID,
+ &ContactEditorData.BusinessNoteListType,
+ &ContactEditorData.BusinessNoteListTokens,
+ &ContactEditorData.BusinessNoteListPref,
+ lboBusinessNotes,
+ intSelectedData);
+ frameCENote->SetEditorMode(TRUE, CE_WORK);
+ frameCENote->ShowModal();
+ delete frameCENote;
+ frameCENote = NULL;
+
}
void frmContactEditor::DeleteBusinessNote( wxCommandEvent& event )
{
- long longSelected = -1;
- int intSelectedData = 0;
-
- if (!GetSelectedItem(lboBusinessNotes,
- &longSelected,
- &intSelectedData)){
- return;
- }
-
- lboBusinessNotes->DeleteItem(longSelected);
-
- DeleteMapData(intSelectedData, &ContactEditorData.BusinessNoteList,
- &ContactEditorData.BusinessNoteListLanguage, &ContactEditorData.BusinessNoteListAltID,
- &ContactEditorData.BusinessNoteListPID, &ContactEditorData.BusinessNoteListType,
- &ContactEditorData.BusinessNoteListTokens, &ContactEditorData.BusinessNoteListPref);
+
+ long longSelected = -1;
+ int intSelectedData = 0;
+
+ if (!GetSelectedItem(lboBusinessNotes,
+ &longSelected,
+ &intSelectedData)){
+
+ return;
+
+ }
+
+ lboBusinessNotes->DeleteItem(longSelected);
+
+ DeleteMapData(intSelectedData, &ContactEditorData.BusinessNoteList,
+ &ContactEditorData.BusinessNoteListLanguage, &ContactEditorData.BusinessNoteListAltID,
+ &ContactEditorData.BusinessNoteListPID, &ContactEditorData.BusinessNoteListType,
+ &ContactEditorData.BusinessNoteListTokens, &ContactEditorData.BusinessNoteListPref);
}