async void ShowContent(CompanyDocumentClient selectedItem)
        {
            busyIndicator.IsBusy = true;
            await api.Read(selectedItem);

            CWDocumentViewer viewer = new CWDocumentViewer(selectedItem.DocumentData, selectedItem.DocumentType);

            viewer.Show();
            busyIndicator.IsBusy = false;
        }
Example #2
0
        async private void ShowInvoice(SubscriptionInvoiceClient selectedItem)
        {
            var subsApi    = new SubscriptionAPI(api);
            var invoicePdf = await subsApi.SubscriptionInvoicePDF(selectedItem);

            if (invoicePdf != null)
            {
                var viewer = new CWDocumentViewer(invoicePdf, FileextensionsTypes.PDF);
                viewer.Show();
            }
        }
Example #3
0
        async void ShowVoucherInfo(GLTransClient voucherRef)
        {
            busyIndicator.IsBusy = true;
            var record = await api.Query <VouchersClient>(new UnicontaBaseEntity[] { voucherRef }, null);

            busyIndicator.IsBusy = false;
            if (record != null && record.Length > 0)
            {
                var voucherInfo = record[0];
                var viewer      = new CWDocumentViewer(voucherInfo);
                viewer.Show();
            }
        }
Example #4
0
        async void ShowVoucherInfo(GLTransClientTotal selectedItem)
        {
            busyIndicator.IsBusy = true;
            var record = await api.Query <VouchersClient>(new UnicontaBaseEntity[] { selectedItem }, null);

            busyIndicator.IsBusy = false;
            if (record != null && record.Length > 0)
            {
                var voucherInfo = record[0];
#if SILVERLIGHT
                var viewer = new CWDocumentViewer(voucherInfo);
                viewer.Show();
#endif
            }
        }