private async void PenjualanBulan(Task <double> task, MainBoxItem obj) { double res = await task; if (res > 0) { obj.ContentItem.Text = string.Format("Rp. {0:N}", res); } }
private async void OnCompleteInvoice(Task <List <invoice> > task, MainBoxItem obj) { var res = await task; if (res != null) { obj.ContentItem.Text = string.Format("{0} Inv", res.Count); } }
private async void OnCompletePenjualanNotHaveDeliveryStatus(Task <List <PenjualanReportModel> > task, MainBoxItem obj) { var res = await task; if (res != null) { obj.ContentItem.Text = string.Format("{0} SPB", res.Count); } }