async Task OpenPatientOrderItem(PatientOrderItem item) { if (item != null) { SetSelectedPatientOrderItem(item); } var vmodel = new UserOrderViewModel { OrderRowId = this.OrderRowId, IsShowListMode = false, InitSelectedPatientOrderItemRowId = item?.RowId, }; await NavFunc.NavigateToAsync(vmodel); this.SubscribeOnClosed(vmodel, async() => { if (vmodel.IsCommit) { if (!await LoadData()) { return; } CalcAll(); } }); }
async Task ItemOpen(Order item) { SetSelectedPatientOrderItem(item); var viewModel = new UserOrderViewModel { OrderRowId = item.RowId, }; await NavFunc.NavigateToAsync(viewModel); }