public async Task ClickAddOnUomsPage() { // legitimize action if (NavState != NavState.OnUomsPage) { throw new Exception("Can't SelectUomItemToEdit() if not on Uoms page"); } ExpectedUomItemPage = GetNewExpectedUomItemPage(); ExpectedUomItemPage.SetUomId(0); ExpectedUomItemPage.SetItemIsBeingEdited(false); NavState = NavState.OnUomItemPage; NavCount++; if (!CheckForRelogin()) { await ExpectedUomItemPage.OnAppearingAsync(); } }
public async Task SelectUomItemToEdit(int index) { // legitimize action if (NavState != NavState.OnUomsPage) { throw new Exception("Can't SelectUomItemToEdit() if not on Uoms page"); } var selectedListItemId = ExpectedUomsCollectionPage.Select(index).Id; ExpectedUomItemPage = GetNewExpectedUomItemPage(); ExpectedUomItemPage.SetUomId(selectedListItemId); ExpectedUomItemPage.SetItemIsBeingEdited(true); NavState = NavState.OnUomItemPage; NavCount++; if (!CheckForRelogin()) { await ExpectedUomItemPage.OnAppearingAsync(); } }