protected override void OnNavigatedTo(NavigationEventArgs e) { int quotationId = (e.Parameter as int?).Value; PageHelper.DoAsync(overlay, Dispatcher, () => { QuotationViewModel.LoadQuotationByPK(quotationId); PageHelper.MainUI(Dispatcher, () => { this.Bindings.Update(); }); }); }
private void LoadEvent(int quotationId) { PageHelper.DoAsync(overlay, Dispatcher, () => { // Ophalen van huidige event QuotationViewModel.LoadQuotationByPK(quotationId); QuotationViewModel.LoadStatus(); // fill dropdown with customers PageHelper.MainUI(Dispatcher, () => { // fill dropdown with payment statusses this.QuotationViewModel.QuotationStatusList.ForEach(QuotationStatus => { dropDownItemsQuotation.AddItem(QuotationStatus, QuotationStatus.Substring(0, 1).ToUpper() + QuotationStatus.Substring(1, QuotationStatus.Length - 1).ToLower()); }); this.QuotationViewModel.QuotationStatus = this.QuotationViewModel.QuotationStatus; this.Bindings.Update(); }); }); }