Exemple #1
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourUnitOfExecution.Dispatch(
         () =>
     {
         this.flourPrice = e.Price;
         this.Compute();
     });
 }
Exemple #2
0
 private void MarketDataEggPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     // forward the notification to the sequencer
     this.eggUnitOfExecution.Dispatch(
         () =>
     {
         this.eggPrice = e.Price;
         this.Compute();
     });
 }
Exemple #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();
            });
        }
Exemple #4
0
 private void MarketDataFlourPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.flourProcessor.Post(e.Price);
 }
Exemple #5
0
 private void MarketDataPackagingPriceChanged(object sender, RawMaterialPriceChangedEventArgs e)
 {
     this.packagingProcessor.Post(e.Price);
 }
 /// <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();
             });
 }