示例#1
0
		public MarqueeControl(Label label, SuperMarquee marquee, MarqueeData data, Model model)
		{
			Model = model;
			Label = label;
			Marquee = marquee;
			SetData(data);
		}
示例#2
0
		/// <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;
		}
示例#3
0
		public SavedMarqueeData(int marqueeCount)
		{
			Marquees = new MarqueeData[marqueeCount];
			for (int i = 0; i < Marquees.Length; i++)
				Marquees[i] = new MarqueeData();
		}