Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }