private Panel getRankingProfilInfos(ClientInfos profilInfos)
        {
            Panel newPanel = new Panel();
            RankingProfilsInfos detail = new RankingProfilsInfos();
            detail.SetRankingProfilsInfos(profilInfos);

            //setposition and size of the panel
            newPanel.Location = new Point(1, YPanelLocation);
            newPanel.Size = new Size(500, 80);

            //add detailpartie view to newpanel
            detail.TopLevel = false;
            newPanel.Controls.Add(detail);
            detail.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            detail.Dock = DockStyle.Fill;
            detail.Show();

            //add panel to this view
            this.Controls.Add(newPanel);

            YPanelLocation += 80;
            return (newPanel);
        }
        private Panel getRankingProfilInfos(ClientInfos profilInfos)
        {
            Panel newPanel             = new Panel();
            RankingProfilsInfos detail = new RankingProfilsInfos();

            detail.SetRankingProfilsInfos(profilInfos);

            //setposition and size of the panel
            newPanel.Location = new Point(1, YPanelLocation);
            newPanel.Size     = new Size(500, 80);

            //add detailpartie view to newpanel
            detail.TopLevel = false;
            newPanel.Controls.Add(detail);
            detail.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            detail.Dock            = DockStyle.Fill;
            detail.Show();

            //add panel to this view
            this.Controls.Add(newPanel);

            YPanelLocation += 80;
            return(newPanel);
        }