{
case ID_FOOTER_EDIT:
{
+ Person* pPerson = __pAddressbookMgr->GetPersonN(__pPerson->GetId());
+ if (pPerson == null)
+ {
+ MessageBox messageBox;
+ messageBox.Construct(L"Error", "The person doesn't exist.", MSGBOX_STYLE_OK, 0);
+ int doModal;
+ messageBox.ShowAndWait(doModal);
+
+ pSceneManager->GoBackward(BackwardSceneTransition());
+
+ break;
+ }
+
+ delete pPerson;
+
ArrayList* pPersonIdList = new (std::nothrow) ArrayList();
AppAssert(pPersonIdList);
if (IsFailed(r))
{
MessageBox messageBox;
- messageBox.Construct(L"Error", "Failed to remove person", MSGBOX_STYLE_OK, 0);
+ messageBox.Construct(L"Error", "Failed to remove the person", MSGBOX_STYLE_OK, 0);
int doModal;
messageBox.ShowAndWait(doModal);
}
- TryReturn(!IsFailed(r), r, "Failed to remove person (%s).", GetErrorMessage(r));
+ TryReturn(!IsFailed(r), r, "Failed to remove the person (%s).", GetErrorMessage(r));
return r;
}