public void ChangeContentPage(Constants.ContentPage page) { lock (LockPageSwap) { if (page == CurrentPage) { return; } CurrentPage = page; OnChangeContentPage?.Invoke(this, CurrentPage); } }
public void SetResource(PlacesResponse response) { CurrentPage = response._pagedResult.CurrentPage; PageCount = response._pagedResult.PageCount; RowCount = response._pagedResult.RowCount; Resources.Clear(); foreach (var placeInfoResource in response._pagedResult.Results) { Resources.Add(placeInfoResource); } NotifyStateChanged(); OnChangeContentPage?.Invoke(); }
public void NotifyStateChanged() { OnChangeContentPage?.Invoke(); }