public class SimpleScheduleDataProvider : ScheduleDataProvider { /// <summary> /// Default constructor. /// </summary> public SimpleScheduleDataProvider() : base() { } public override void InitLists() { base.InitLists(); ///Suggestion 1 this.LabelList[0].ColorMember = Color.Black; this.LabelList[1].ColorMember = Color.Red; this.LabelList[2].ColorMember = Color.Purple; this.LabelList[3].ColorMember = Color.Yellow; this.LabelList[4].ColorMember = Color.Pink; this.LabelList[5].ColorMember = Color.YellowGreen; this.LabelList[6].ColorMember = Color.Violet; this.LabelList[7].ColorMember = Color.Tomato; this.LabelList[8].ColorMember = Color.SpringGreen; this.LabelList[9].ColorMember = Color.SandyBrown; this.LabelList[10].ColorMember = Color.RosyBrown; ///Suggestion 2 //this.LabelList = new ListObjectList(); //this.LabelList.Add(new ListObject(0, "None", Color.White)); //this.LabelList.Add(new ListObject(1, "Important", Color.Red)); //this.LabelList.Add(new ListObject(2, "Business", Color.Purple)); //this.LabelList.Add(new ListObject(3, "Personal", Color.Yellow)); //this.LabelList.Add(new ListObject(4, "Vacation", Color.Pink)); //this.LabelList.Add(new ListObject(5, "Must Attend", Color.YellowGreen)); //this.LabelList.Add(new ListObject(6, "Travel Required", Color.Violet)); //this.LabelList.Add(new ListObject(7, "Needs Preparation", Color.Tomato)); //this.LabelList.Add(new ListObject(8, "Birthday", Color.SpringGreen)); //this.LabelList.Add(new ListObject(9, "Anniversary", Color.SandyBrown)); //this.LabelList.Add(new ListObject(10, "Phone Call", Color.RosyBrown)); } } |
Thanks for your help. It works fine!!!
Regards
Raúl