Пример #1
0
        public static void Draw(UIElementCollection children)
        {
            if (myBannerText == null)
            {
                return;
            }

            Label text = myBannerText.GetLabel();
            if (text == null)
            {
                myBannerText = null;
                return;
            }

            children.Add(text);
        }
Пример #2
0
 public static void NewBanner(string s, Rect rect, bool scroll, Color col)
 {
     myBannerText = (s != null) ? new BannerText(s, rect, scroll, col) : null;
 }