public VwAddEquation(IEquationsUiService equationsUiService, VmAddEquation vmAddEquation, bool isModal) { _equationsUiService = equationsUiService; _vmAddEquation = vmAddEquation; IsModal = isModal; InitializeComponent(); BindingContext = vmAddEquation; }
public async Task <bool> ShowAddEquation_Step2(VmAddEquation vm) { VwAddEquationStep2 vw = new VwAddEquationStep2(vm, isModal: true); await Navigation.PushModalAsync(vw); await vw.PageClosedTask; // Wait here until the Page is dismissed return(true); }
public async Task <Tuple <bool, string, string, string, IList <VarInfo> > > ShowAddEquation(ContentManager cm) { VmAddEquation vm = new VmAddEquation(this, cm); VwAddEquation vw = new VwAddEquation(this, vm, isModal: true); await Navigation.PushModalAsync(vw); await vw.PageClosedTask; // Wait here until the Page is dismissed return(new Tuple <bool, string, string, string, IList <VarInfo> >(vm.SelectionCancelled, vm.EquationString, vm.UserEquationString, vm.EqDescription, vm.GetVarInfoList())); }
public VwAddEquationStep2(VmAddEquation vmAddEquation, bool isModal) { _vmAddEquation = vmAddEquation; IsModal = isModal; BindingContext = vmAddEquation; vmAddEquation.MaxVarLengthChanged += OnMaxVarLengthChanged; SetColWidths(); InitializeComponent(); }