public BomOperations(StyleHeaderViewModel viewModel, bool mainOperation) { InitializeComponent(); DataContext = this; MainOperation = mainOperation; _viewModel = viewModel; _client.SearchVendorsCompleted += (s, e) => { if (e.Error != null) { return; } VendAutoComplete.ItemsSource = e.Result; VendAutoComplete.PopulateComplete(); }; RouteCardService.GetRoutesCompleted += (s, sv) => { DgResults.ItemsSource = sv.Result; }; RouteCardService.GetRoutGroupsAsync(null, null); RouteCardService.GetRoutGroupsCompleted += (s, sv) => { CmbRouteGroup.ItemsSource = sv.Result; }; }
public NewRFQPage() { InitializeComponent(); var rfqSearchViewModel = LayoutRoot.DataContext as NewRFQViewModel; if (rfqSearchViewModel != null) { rfqSearchViewModel.VendorPopulatingCompleted += (s, e) => VendAutoComplete.PopulateComplete(); } }