private PictureTopBar newPictureTopBar(string i_LabelTitle, string i_PictureUrl)
        {
            PictureTopBar ptb = m_UserInPtb.DeepClone();

            ptb.Picture.LoadAsync(i_PictureUrl);
            ptb.LabelText.Text = i_LabelTitle;
            return(ptb);
        }
Exemple #2
0
        private PictureTopBar newPictureTopBar(float i_SizeInterval, string i_LabelTitle, string i_PictureUrl)
        {
            PictureTopBar ptb = new PictureTopBar()
            {
                Size = new Size((int)(200 * i_SizeInterval), (int)(250 * i_SizeInterval))
            };

            ptb.TopPanel.BackColor  = r_BackColor;
            ptb.LabelText.ForeColor = r_ForeColor;
            ptb.Picture.LoadAsync(i_PictureUrl);
            ptb.LabelText.Text = i_LabelTitle;
            return(ptb);
        }
        private void pictureTopBar_Click(object sender, EventArgs e)
        {
            PictureTopBar ptb = sender as PictureTopBar;

            if (ptb != null)
            {
                try
                {
                    updateUserLoadedInfo(ptb.MyUserAnalysis);
                }
                catch (Exception)
                {
                    serviceNotAvailableMessage();
                }
            }
        }
        private void initSettings()
        {
            groupBoxSortOpt.BackColor = r_BackColor;
            checkBoxCheckin.ForeColor = r_ForeColor;
            checkBoxEvents.ForeColor  = r_ForeColor;
            checkBoxPosts.ForeColor   = r_ForeColor;
            checkBoxTagged.ForeColor  = r_ForeColor;

            buttonHelp.BackColor = r_BackColor;
            buttonHelp.ForeColor = r_ForeColor;

            m_UserInPtb = new PictureTopBar {
                Size = new Size((int)(200 * k_PtbSizeInterval), (int)(250 * k_PtbSizeInterval))
            };
            m_UserInPtb.TopPanel.BackColor  = r_BackColor;
            m_UserInPtb.LabelText.ForeColor = r_ForeColor;

            m_UserInPtb.LabelText.Text = m_LoadedUserAnalysis.UserIn.Name;
            m_UserInPtb.Picture.Image  = pictureBoxLaodedUser.Image;
            m_UserInPtb.AddToClickEvent(pictureTopBar_Click);
            flowLayoutPanelFriends.Controls.Add(m_UserInPtb);
        }