public EventPage(EventPreview preview, MainWindow mainWindow, List <Bitmap> photos, List <DataMini> subscribersList, bool reg) { InitializeComponent(); this.mainWindow = mainWindow; EventAnimation(true); engine = new EventPageEngine(preview, photos, subscribersList, this); if (!reg) { joinButton.Visibility = Visibility.Hidden; friendLabel.Visibility = Visibility.Hidden; scrollViewer.Visibility = Visibility.Hidden; bord.Visibility = Visibility.Hidden; } else { engine.MakeSubscribersList(subscribersPanel); } engine.FillByPhotos(mainPhotoPlace, miniPhotoPlace1, miniPhotoPlace2, miniPhotoPlace3); engine.FillByData(contentCategory, LabelEventName, contentPlace, number, contentDescription, dateLabel); List <Control> labels = new List <Control>(); labels.Add(friendLabel); labels.Add(LabelCategory); labels.Add(LabelDescription); labels.Add(LabelPlace); MyStaticData.ColoredLabels(labels, new Random()); }
public EventPageEngine(EventPreview preview, List <Bitmap> photos, List <DataMini> subscribersList, EventPage eventPage) { this.r = new Random(); this.preview = preview; this.photos = new List <Bitmap>(photos); this.subscribersList = new List <DataMini>(subscribersList); this.categories = preview.data.Category; }
public List <EventPreview> CreateStartWindow(List <DataEventPreview> data) { EventPreview preview; news = new List <EventPreview>(); for (int i = 0; i < data.Count; i++) { preview = new EventPreview(data[i]); news.Add(preview); elementPanel.Children.Add(preview); } return(news); }