/* check how to process the changed data in current form or form set. */
BOOLEAN ProcessChangedData(IN OUT UI_MENU_SELECTION *Selection, IN BROWSER_SETTING_SCOPE Scope)
/* check how to process the changed data in current form or form set. */
BOOLEAN ProcessChangedData(IN OUT UI_MENU_SELECTION *Selection, IN BROWSER_SETTING_SCOPE Scope)
{
  BOOLEAN     RetValue;
  EFI_STATUS  Status;
  RetValue = TRUE;
  switch (mFormDisplay->ConfirmDataChange ()) {
    case BROWSER_ACTION_DISCARD:
      DiscardForm (Selection->FormSet, Selection->Form, Scope);
      break;
    case BROWSER_ACTION_SUBMIT:
      Status = SubmitForm (Selection->FormSet, Selection->Form, Scope);
      if (EFI_ERROR (Status)) {
        RetValue = FALSE;
      }
      break;
    case BROWSER_ACTION_NONE:
      RetValue = FALSE;
      break;
    default:
      RetValue = FALSE;
      break;
  }
  return RetValue;
}