/// <summary> /// Carrega os objetos de tela para o Item Provider da página /// </summary> public override GeneralDataProviderItem LoadItemFromControl(bool EnableValidation) { GeneralDataProviderItem Item = PageProvider.GetDataProviderItem(DataProvider); if (PageState != FormStateEnum.Navigation) { } else { Item = PageProvider.MainProvider.DataProvider.SelectItem(PageNumber, FormPositioningEnum.Current); } if (EnableValidation) { InitializeAlias(Item); if (PageState == FormStateEnum.Insert) { FillAuxiliarTables(); } PageProvider.Validate(Item); } if (Item != null) { PageErrors.Add(Item.Errors); } return(Item); }