private async void allWorkOrder() { await BeBusy(true); headerTitle.Text = "جميع أوامر العمل"; var wovv = await rcs.getWorkOrderViewByIDAsync(DataStore.getUserID()); if (wovv.Count > 0) { mainListView.ItemsSource = wovv; foreach (WorkOrderView wov in mainListView.ItemsSource) { if (wov.ProjectName == null) { wov.ProjectName = "غير مرتبط بمشروع"; } wov.Duration = (DateTime.Today.Date - wov.startingDate).Value.Days; } searchList = (List <WorkOrderView>)mainListView.ItemsSource; Nothing.IsVisible = false; } else { Nothing.IsVisible = true; } await BeBusy(false); }