public FriendNotificationWindow(string sender, byte[] image)
 {
     InitializeComponent();
     Sender = sender;
     textBlockInformation.Text          = Sender + " wants to add you to his friend list.";
     textBlockInformation.TextAlignment = TextAlignment.Center;
     ResizeMode       = ResizeMode.CanMinimize;
     avatarImage.Fill = new ImageBrush(ClientInformation.ToImage(image));
 }
Exemplo n.º 2
0
        public ChangeInformationWindow()
        {
            InitializeComponent();
            ResizeMode = ResizeMode.CanMinimize;

            textBlockInformation.Text = "Profile: " + ClientInformation.Username;
            textBoxEmail.Text         = ClientInformation.Email;
            passwordBox.Password      = ClientInformation.Password;
            if (ClientInformation.Image == null)
            {
                image.Source = new BitmapImage(new Uri(@"/Images/default_avatar.png", UriKind.Relative));
            }
            else
            {
                image.Source = ClientInformation.ToImage(ClientInformation.Image);
            }
        }