Esempio n. 1
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourUnitOfExecution.Dispatch(
         () =>
     {
         this.flourPrice = e.Price;
         this.Compute();
     });
 }
Esempio n. 2
0
 private void MarketDataEggPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     // forward the notification to the sequencer
     this.eggUnitOfExecution.Dispatch(
         () =>
     {
         this.eggPrice = e.Price;
         this.Compute();
     });
 }
Esempio n. 3
0
        // price update handles
        private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
        {
            // forward the notification to the sequencer
            this.packagingUnitOfExecution.Dispatch(
                () =>
            {
                // capture the price
                this.packagingPrice = e.Price;

                // computes an updated price
                this.Compute();
            });
        }
Esempio n. 4
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourProcessor.Post(e.Price);
 }
Esempio n. 5
0
 private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.packagingProcessor.Post(e.Price);
 }
Esempio n. 6
0
 /// <summary>
 /// The market data_ flour price changed.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void MarketData_FlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourUnitOfExecution.Dispatch(
         () =>
             {
                 this.flourPrice = e.Price;
                 this.Compute();
             });
 }