public EventPreview(DataEventPreview data) { InitializeComponent(); this.engine = new EventPreviewEngine(data); this.data = data; Random r = new Random(); engine.FillByColor(FullSizePhotoPlace); engine.FillByColor(MiniPhoto1); engine.FillByColor(MiniPhoto2); engine.FillByColor(MiniPhoto3); engine.FillByColor(MiniPhoto4); List <Control> labels = new List <Control>(); labels.Add(LabelEventName); labels.Add(LabelCategory); labels.Add(LabelDescription); labels.Add(LabelPlace); labels.Add(number); MyStaticData.ColoredLabels(labels, new Random()); engine.FillByPhotos(FullSizePhotoPlace, MiniPhoto1, MiniPhoto2, MiniPhoto3, MiniPhoto4); engine.FillByData(LabelEventName, contentCategory, contentPlace, contentDescription, number, dateLabel); }
public EventPreviewEngine(DataEventPreview data) { this.data = data; r = new Random(); this.eventID = data.EventID; }