async void MarkedInvTrans(ProductionOrderLineClient selectedItem) { busyIndicator.IsBusy = true; var invTrans = new InvTransClient(); OrderAPI orderApi = new OrderAPI(api); var res = await orderApi.GetMarkedInvTrans(selectedItem, invTrans); busyIndicator.IsBusy = false; if (res == ErrorCodes.Succes) { AddDockItem(TabControls.InvTransMarkedPage, new object[] { api, invTrans }, string.Format("{0}: {1}", Uniconta.ClientTools.Localization.lookup("InvTransactions"), invTrans._OrderNumber)); } else { UtilDisplay.ShowErrorCode(res); } }