private async void populateList(int v) { await BeBusy(true); List <WorkOrderParametersView> wop = await rcs.getWorkOredrParametersByWONoAsync(v); if (wop.Count == 0) { Nothing.IsVisible = true; } else { wopListView.ItemsSource = wop; BindingContext = wop; } foreach (var item in wop) { if (item.putID == 1) { item.what = "اجمالي الطول (KM):"; item.data = item.Lenght.ToString(); item.injaz = "تم انجاز (KM) : " + item.DoneLength; } else if (item.putID == 2) { item.what = " اجمالي العدد:"; item.data = item.Amount.ToString(); item.injaz = "تم انجاز (عدد) : " + item.DoneAmount; } else if (item.putID == 3) { if (item.isDone) { item.injaz = "تم الانجاز"; } else { item.injaz = "لم يتم الانجاز"; } } else if (item.putID == 4) { item.injaz = "تم الانجاز بنسبة : " + item.DoneAmount.ToString() + " %"; } } await BeBusy(false); }