Exemplo n.º 1
0
        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];
        }
Exemplo n.º 2
0
        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];
        }