public void NewAuctionCreatedEventHandler(object sender, NewAuctionEventArgs eventArgs)
        {
            if (auctionCount == 0)
            {
                auctionSources  = new List <AuctionESM>();
                auctionHandlers = new List <AuctionEH>();
            }

            var source = new AuctionESM(monitorArgs);

            source.SetAuction(eventArgs.Order);
            var handler = new AuctionEH();

            source.OrderDeadlineEvent             += handler.OrderDeadlineEventHandler;
            source.ApplicantsDeadlineEvent        += handler.ApplicantsDeadlineEventHandler;
            source.ExchangeProvisionDeadlineEvent += handler.ExchangeProvisionDeadlineEventHandler;
            source.AuctionStartedEvent            += handler.AuctionStartedEventHandler;
            source.AuctionEndedEvent += Source_AuctionEndedEvent;

            auctionSources.Add(source);
            auctionHandlers.Add(handler);
            auctionCount++;

            source.Start();
        }
 private int GetAuctionIndex(AuctionESM source)
 {
     for (var i = 0; i < auctionCount; i++)
     {
         if (auctionSources[i].Equals(source))
         {
             return(i);
         }
     }
     return(-1);
 }