public void ChangeContentPage(Constants.ContentPage page)
 {
     lock (LockPageSwap)
     {
         if (page == CurrentPage)
         {
             return;
         }
         CurrentPage = page;
         OnChangeContentPage?.Invoke(this, CurrentPage);
     }
 }
예제 #2
0
 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();
 }
예제 #3
0
 public void NotifyStateChanged()
 {
     OnChangeContentPage?.Invoke();
 }