internal void AddBubble(InfoBubble bubble) { if (null == bubble) { throw new ArgumentNullException("bubble"); } this.bubbleCollection.Add(bubble.BubbleId, bubble); }
public bool GetInfoBubble(uint bubbleId, out IInfoBubble infoBubble) { infoBubble = null; InfoBubble bubble = null; if (this.bubbleCollection.TryGetValue(bubbleId, out bubble)) { infoBubble = bubble as IInfoBubble; } return(true); }