public MarqueeControl(Label label, SuperMarquee marquee, MarqueeData data, Model model) { Model = model; Label = label; Marquee = marquee; SetData(data); }
/// <summary> /// Read values from the data and set the visible controls. /// </summary> /// <param name="data"></param> public void SetData(MarqueeData data) { Data = data; string name = Model.GetCategoryName(data.CategoryId); Label.Text = "[" + name + "] Speed: " + Data.MarqueeSpeed; Marquee.MarqueeSpeed = data.MarqueeSpeed; }
public SavedMarqueeData(int marqueeCount) { Marquees = new MarqueeData[marqueeCount]; for (int i = 0; i < Marquees.Length; i++) Marquees[i] = new MarqueeData(); }