public Card(Deck _d, CardInfos _i)
 {
     InitializeComponent();
     d = _d;
     infos = _i;
     if (infos.isEditable == false)
         this.btnAddCard.Hide();
 }
 public void             InitializeCardList()
 {
     for (int i = 0; i < 10; i++)
     {
         CardInfos tmp = new CardInfos(i, i);
         tmp.isEditable = true;
         card_list.Add(tmp);
     }
 }
 public void InitializeCardList()
 {
     for (int i = 0; i < 10; i++)
     {
         CardInfos tmp = new CardInfos(i, i);
         tmp.isEditable = true;
         card_list.Add(tmp);
     }
 }
 public Card(Deck _d, CardInfos _i)
 {
     InitializeComponent();
     d     = _d;
     infos = _i;
     if (infos.isEditable == false)
     {
         this.btnAddCard.Hide();
     }
 }
        // Functions about CARDLIST
        private Panel getCardItem(CardInfos infos)
        {
            Panel newPanel = new Panel();
            Card  detail   = new Card(this, infos);

            detail.setCardInfos();

            //setposition and size of the panel
            newPanel.Location = new Point(infos.pos, 1);
            newPanel.Size     = new Size(223, 300);

            //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);

//            i += 223;
            return(newPanel);
        }
        // Functions about CARDLIST
        private Panel getCardItem(CardInfos infos)
        {
            Panel newPanel = new Panel();
            Card detail = new Card(this, infos);
            detail.setCardInfos();

            //setposition and size of the panel
            newPanel.Location = new Point(infos.pos, 1);
            newPanel.Size = new Size(223, 300);

            //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);

            //            i += 223;
            return (newPanel);
        }