Zmieniono sposób numeracji stron, od teraz strona pierwsza to 1, druga to 2 itp.

This commit is contained in:
Krystian Kabat 2019-01-27 14:32:39 +01:00
parent 40be2adfd7
commit 63d9a5f3ca

View File

@ -85,7 +85,7 @@ namespace Magazyn
private void RefreshListOfFruits() private void RefreshListOfFruits()
{ {
pageBlock.Text = page.ToString(); pageBlock.Text = (page+1).ToString();
Task<HttpResponseMessage> response = client.GetAsync("https://sysmag.herokuapp.com/api/get-all?page=" + page.ToString() + "&size=" + size.ToString()); Task<HttpResponseMessage> response = client.GetAsync("https://sysmag.herokuapp.com/api/get-all?page=" + page.ToString() + "&size=" + size.ToString());
while (response.IsCompleted != true) ; while (response.IsCompleted != true) ;