SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
- result r = E_SUCCESS;
- r = SaveContact(__selectedTabId);
- if (IsFailed(r))
+ result r = SaveContact(__selectedTabId);
+ if (r == E_FAILURE)
+ {
+ break;
+ }
+ else if (IsFailed(r))
{
MessageBox messageBox;
messageBox.Construct(L"Error", "Failed to update contact", MSGBOX_STYLE_OK, 0);
if (__firstName.IsEmpty() && __lastName.IsEmpty())
{
MessageBox messageBox;
- messageBox.Construct(L"Info", "Enter the first name and last name", MSGBOX_STYLE_OK, 0);
+ messageBox.Construct(L"Info", "Enter the first name or last name", MSGBOX_STYLE_OK, 0);
int doModal;
messageBox.ShowAndWait(doModal);