void loading() { if (ItemTemplates == null) { ItemTemplates = new Dictionary <string, ItemTemplate> (); } if (!ItemTemplates.ContainsKey("default")) { ItemTemplates ["default"] = Interface.GetItemTemplate(ItemTemplate); } for (int i = 1; i <= (data.Count / itemPerPage) + 1; i++) { if (cancelLoading) { return; } loadPage(i); } }