Esempio n. 1
0
 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;
     };
 }
Esempio n. 2
0
        public NewRFQPage()
        {
            InitializeComponent();
            var rfqSearchViewModel = LayoutRoot.DataContext as NewRFQViewModel;

            if (rfqSearchViewModel != null)
            {
                rfqSearchViewModel.VendorPopulatingCompleted += (s, e) => VendAutoComplete.PopulateComplete();
            }
        }