Esempio n. 1
0
 protected void ShowLoginUser(ModAPI.Utils.WebService.User user)
 {
     Dispatcher.Invoke(delegate() {
         LoginButton.Visibility      = System.Windows.Visibility.Collapsed;
         LoginLoader.Visibility      = System.Windows.Visibility.Collapsed;
         LoggedIn.Visibility         = System.Windows.Visibility.Visible;
         UserAvatarLoader.Visibility = System.Windows.Visibility.Visible;
         System.Console.WriteLine(user.Usergroup);
         Usergroup.SetResourceReference(TextBlock.TextProperty, "Lang.UserGroup." + user.Usergroup);
         Username.Text       = user.Username;
         user.OnAvatarChange = AvatarChange;
         user.LoadAvatar();
     });
 }