Пример #1
0
 public TimeLinePage()
 {
     this.InitializeComponent();
     profit = new SimpleProfile()
     {
         Username    = App.AppSetting.Accounts[App.AppSetting.SelectedAccountIndex].AccountModel.DisplayName,
         Instance    = "at " + App.AppSetting.Accounts[App.AppSetting.SelectedAccountIndex].Instance.Title,
         FaceImage   = App.AppSetting.Accounts[App.AppSetting.SelectedAccountIndex].AccountModel.AvatarStatic,
         HeaderImage = App.AppSetting.Accounts[App.AppSetting.SelectedAccountIndex].AccountModel.HeaderStatic
                       //FaceImage = new BitmapImage(),
                       //HeaderImage = new BitmapImage()
     };
 }
Пример #2
0
        public void getUserIMG()
        {
            ICS_Portal_User_Facade userFacade = new ICS_Portal_User_Facade();
            ICS_Portal_User        attendee   = userFacade.GetByID(PortalUser.Current.ID);
            int intAttendeeID = Int32.Parse(attendee.HostID.TrimStart('0'));
            SimpleProfileFacade profileFacade   = new SimpleProfileFacade();
            SimpleProfile       attendeeProfile = profileFacade.getProfileByID(intAttendeeID);
            string imageUrl;

            //Get the attendee's picture and make it an image
            byte[] pictureByteArray = attendeeProfile.Photo;
            if (pictureByteArray != null)
            {
                imageUrl            = "data:image/jpg;base64," + Convert.ToBase64String(pictureByteArray);
                div_Image.InnerHtml = "<img src=" + imageUrl + ">";
            }
            else
            {
                imageUrl            = "/ICS/icsfs/mm/logo_stacked_black.jpg?target=69535bc7-f944-433c-ae2c-54b00d4cfcc1";
                div_Image.InnerHtml = "<img src=" + imageUrl + " width='193' height='150'>";
            }
            return;
        }
Пример #3
0
 private void WriteProfile(SimpleProfile profile)
 {
     WriteObject(profile, true);
 }