Пример #1
0
        void LoadMarketWorkertranactionDoWork(object sender, DoWorkEventArgs e)
        {
            var marketData = DataHelper.MarketData(_vin, _manheimAuctionManagement);

            if (marketData != null)
            {
                Application.Current.Dispatcher.BeginInvoke(new Action(() =>
                {
                    MarketModel.AveragePrice      = marketData.Market.AveragePrice;
                    MarketModel.MaximumPrice      = marketData.Market.MaximumPrice;
                    MarketModel.MinimumPrice      = marketData.Market.MinimumPrice;
                    MarketModel.IsFinishedLoading = true;
                }
                                                                      ));
            }
        }
Пример #2
0
        void LoadManheimWorkertranactionDoWork(object sender, DoWorkEventArgs e)
        {
            var manheimData = DataHelper.ManheimData(_vin, _dealer.DealerSetting.MainheimUserName, _dealer.DealerSetting.MainheimPassword, _manheimAuctionManagement);

            if (manheimData == null || manheimData.Count <= 0)
            {
                return;
            }
            var firstItem = manheimData[0];

            Application.Current.Dispatcher.BeginInvoke(new Action(() =>
            {
                MainheimModel.AveragePrice      = firstItem.AveragePrice.ToString("CO");
                MainheimModel.HighestPrice      = firstItem.HighestPrice.ToString("CO");
                MainheimModel.LowestPrice       = firstItem.LowestPrice.ToString("CO");
                MainheimModel.IsFinishedLoading = true;
            }));
        }
Пример #3
0
        private void LoadKarpowerWorkertranactionDoWork(object sender, DoWorkEventArgs e)
        {
            var kbbData = DataHelper.KarpowerData(_vin, "0", _dealer.DealerSetting.KBBUserName,
                                                  _dealer.DealerSetting.KBBPassword, _dealer.DealerId);

            if (kbbData == null || kbbData.Count <= 0)
            {
                return;
            }
            var firstItem = kbbData[0];

            Application.Current.Dispatcher.BeginInvoke(new Action(() =>
            {
                KBBModel.BaseWholesale     = firstItem.BaseWholesale.ToString();
                KBBModel.MileageAdjustment = firstItem.MileageAdjustment.ToString();
                KBBModel.Wholesale         = firstItem.Wholesale.ToString();
                KBBModel.IsFinishedLoading = true;
            }));
        }