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 virtual void FillByData(Label nameLabel, Label contentDate, Label contentCity, TextBlock contentCategorys) { contentDate.Content = DateTime.FromOADate(data.Date).ToShortDateString(); contentCity.Content = data.City; contentCategorys.Text = MyStaticData.IntToCategories(data.Categories); nameLabel.Content = data.Name; }
public MiniEventIcon(DataMini eventInformation, Bitmap imade) { InitializeComponent(); this.eventID = Convert.ToInt32(eventInformation[2]); MyStaticData colors = new MyStaticData(); this.iconFill.Fill = new ImageBrush(MainWindow.CreateBitmapSourceFromGdiBitmap(imade)); nameLabel.Content = eventInformation[0]; }
public void FillByData(Label contentCategory, Label LabelEventName, Label contentPlace, Label number, TextBlock contentDescription, Label dateLabel) { try { contentCategory.Content = MyStaticData.IntToCategories(categories); LabelEventName.Content = preview.data.EventName.Clone(); contentPlace.Content = preview.data.Place; contentDescription.Text = (String)preview.data.Description.Clone(); number.Content = preview.data.SubscribersCount; dateLabel.Content = DateTime.FromOADate(preview.data.Date).ToString(); } catch (Exception) { } }
public MiniUserIcon(DataMini userInformation, Random r) { InitializeComponent(); MyStaticData colors = new MyStaticData(); Grid.SetZIndex(initial, 100); this.userID = Convert.ToInt32(userInformation[2]); this.iconFill.Fill = MyStaticData.fontPalette[r.Next(MyStaticData.fontPalette.Length)]; initial.Content = userInformation[0].ToCharArray()[0].ToString() + userInformation[1].ToCharArray()[0].ToString(); nameLabel.Content = userInformation[0] + " " + userInformation[1]; startLabel.Content = userInformation[0]; endLabel.Content = userInformation[0]; }
public void FillByData(Label LabelEventName, Label contentCategory, Label contentPlace, TextBlock contentDescription, Label number, Label dateLabel) { //try //{ LabelEventName.Content = data.EventName; contentCategory.Content = MyStaticData.IntToCategories(data.Category); contentPlace.Content = data.Place; contentDescription.Text = data.Description; number.Content = data.SubscribersCount; dateLabel.Content = DateTime.FromOADate(data.Date).ToString(); //} //catch (Exception) //{ //} }
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()); }