private async void btnNext_Clicked(object sender, EventArgs e) { await EquationsUiService.ShowAddEquation_Step2(_vmAddEquation); if (_vmAddEquation.SelectionCancelled == false) // Selection has finished { if (IsModal) { await PopAwaitableModalAsync(); } else { await PopAwaitableAsync(); } } }
public static async Task <bool> StartEquations(INavigation navigationIn = null) { Utils.IncrementAppIsBusy(); INavigation navigation2 = navigationIn; EquationsUiService equationsUiService = new EquationsUiService(navigation2); VmEquations vmEquations = new VmEquations(equationsUiService); Result <EquationsSystemProblems> r_equationsSystemProblems = null; r_equationsSystemProblems = await InitEquationSystem(vmEquations, async (x) => { return(await ShowVwEquationsPage(navigation2, vmEquations, x)); }); equationsUiService.Navigation = navigation2; Utils.DecrementAppIsBusy(); return(true); }
private void ShowItemsAndDeselect() { try { IDictionary <string, /*selected*/ bool> itemsAndSelections = new Dictionary <string, /*selected*/ bool>(); foreach (var item in GroupedStrings) { if (item.IsSelected) { itemsAndSelections.Add(item.Item, item.IsSelected); } } EquationsUiService.SelectStringsFromList(itemsAndSelections, "Currently selected items", "Deselect items to remove them", AdjustSelections); return; } catch (Exception ex) { Logging.LogException(ex); throw; } }