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 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 FriendPage(DataUserPage data, MainWindow mainWindow) { InitializeComponent(); this.mainWindow = mainWindow; engine = new FriendPageEngine(data); engine.UserIconSet(grid, new Control()); engine.CreateEventlist(eventPanel); engine.FillByData(nameLabel, surnameLabel, contentDate, contentCity, contentCategorys); List <Control> labels = new List <Control>(); labels.Add(nameLabel); labels.Add(surnameLabel); labels.Add(dateLabel); labels.Add(cityLabel); labels.Add(categoryLabel); labels.Add(eventLabel); MyStaticData.ColoredLabels(labels, new Random()); }