protected void UpdateNextTradeLeg() { CurrentTradeLeg = TradeLegs.FirstOrDefault(a => !a.IsLegComplete); if (CurrentTradeLeg != null) { LoggingUtility.WriteInfoFormat(this, "Set CURRENT LEG: {0}", CurrentTradeLeg.LegName); } else if (!AreAllLegsCompleted) { LoggingUtility.WriteInfo(this, "CURRENT LEG IS NULL"); } }
protected void AddLeg(BaseTradeLeg tradeLeg) { TradeLegs.Add(tradeLeg); LoggingUtility.WriteInfoFormat(this, "Added leg: {0}", tradeLeg.LegName); }