Example #1
0
 private void StopSlider()
 {
     try
     {
         if (!this.mRunPromotion)
         {
             return;
         }
         this.mRunPromotion = false;
         if (PromotionControl.sBootPromotionDisplayed == null || !PromotionControl.sBootPromotionDisplayed.Any <KeyValuePair <BootPromotion, int> >())
         {
             return;
         }
         Dictionary <BootPromotion, int> bootPromos = PromotionControl.sBootPromotionDisplayed;
         PromotionControl.sBootPromotionDisplayed = (Dictionary <BootPromotion, int>)null;
         ThreadPool.QueueUserWorkItem((WaitCallback)(obj => PromotionControl.SendPromotionStats(bootPromos)));
     }
     catch (Exception ex)
     {
         Logger.Error("Exception aborting thread" + ex.ToString());
     }
 }