//event handler
 /// <summary>
 /// Called when [price cut].
 /// </summary>
 /// <param name="src">The SRC.</param>
 /// <param name="e">The <see cref="Project2.PriceCutEventArgs"/> instance containing the event data.</param>
 public void OnPriceCut(object src, PriceCutEventArgs e)
 {
     lock (syncRoot)
     {
         chickenPrice = e.Price;
     }
     priceCutManualResetEvent.Set();
 }
 /// <summary>
 /// Raises the <see cref="E:PriceCut"/> event.
 /// </summary>
 /// <param name="e">The <see cref="Project2.PriceCutEventArgs"/> instance containing the event data.</param>
 public void OnPriceCut(PriceCutEventArgs e)
 {
     var handler = PriceCut;
     if (handler != null)
     {
         handler(this, e);
     }
 }