public Card(Deck _d, CardInfos _i)
 {
     InitializeComponent();
     d = _d;
     infos = _i;
     if (infos.isEditable == false)
         this.btnAddCard.Hide();
 }
        private void InitializePanel_AfterConnection()
        {
            Profil profilForm = new Profil(this);

            //fill profil panel with profil form
            profilForm.TopLevel = false;
            pnlProfil.Controls.Add(profilForm);
            profilForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            profilForm.Dock = DockStyle.Fill;
            profilForm.Show();
            Console.WriteLine("profil panel init: DONE");

               Deck deckForm = new Deck(this);

            //fill profil panel with profil form
            deckForm.TopLevel = false;
            pnlDeck.Controls.Add(deckForm);
            deckForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            deckForm.Dock = DockStyle.Fill;
            deckForm.Show();
            Console.WriteLine("deck panel init: DONE");
        }
 public ChooseCardsSkins(Deck _d)
 {
     InitializeComponent();
     d = _d;
 }