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; }
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(); } }
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(); } }
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 } }