private void LoadObjects() { try { if (Filter.FilterByPeriod) { if (DateFrom > DateTo) { var date = DateTo; DateTo = DateFrom; DateFrom = date; } } String user = Filter.FilterByUser ? User : String.Empty; String featureClass = Filter.FilterByFeatureClass ? FeatureClass : String.Empty; ModifyState state = Filter.FilterByState ? State : ModifyState.None; Int64 featureFid = Filter.FilterByFid ? FeatureFid : 0; ModificationInfoDTO minfoDTO; if (!Filter.FilterByPeriod) { minfoDTO = _analyzeService.GetModificationInfos(CurrentPage, featureFid, user, featureClass, state); } else { minfoDTO = _analyzeService.GetModificationInfos(DateFrom, DateTo, CurrentPage, featureFid, user, featureClass, state); } TotalCount = minfoDTO.TotalCount; ModificationInfos = new ObservableCollection <ModificationInfo>(minfoDTO.Infos); TotalCount = minfoDTO.TotalCount; TotalPageCount = TotalCount / _analyzeService.PageSize; UpdateNavigate(); } catch (Exception ex) { Messenger.Default.Send(ex); } }