private void butAcc_Click(object sender, EventArgs e)
        {
            ClearPanelLoad();

            FormAcc frmAcc = new FormAcc()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmAcc.FormBorderStyle = FormBorderStyle.None;
            this.panelLoad.Controls.Add(frmAcc);
            frmAcc.Show();
        }
Exemple #2
0
        public void hienthi(Comment comment)
        {
            FormAcc n        = new FormAcc();
            User    cmtOwner = Database.Users.FirstOrDefault(user => user.Uid == comment.Uid);

            label1.Text = cmtOwner?.Nickname;
            label2.Text = comment.Content;

            Picture pic = cmtOwner?.GetPicture();

            if (pic?.GetImage() != null)
            {
                pictureBox1.Image = pic.GetImage();
            }
            else
            {
                pictureBox1.Image = global::BookRecommendationApp.Properties.Resources.user;
            }
        }