Пример #1
0
 public Card(int cout, COULEUR couleur, string nom, string descriptionEffet, List <int> valeurActivation, CARD_ID id, CardBox cb)
 {
     this.cout             = cout;
     this.couleur          = couleur;
     this.nom              = nom;
     this.descriptionEffet = descriptionEffet;
     this.valeurActivation = valeurActivation;
     ID      = id;
     this.cb = cb;
 }
Пример #2
0
 public Card(Card c)
 {
     this.cout             = c.cout;
     this.couleur          = c.couleur;
     this.nom              = c.nom;
     this.descriptionEffet = c.descriptionEffet;
     this.valeurActivation = new List <int>(c.valeurActivation);
     ID      = c.ID;
     this.cb = new CardBox();
     this.cb.ImageLocation = c.cb.ImageLocation;
     this.cb.SizeMode      = PictureBoxSizeMode.StretchImage;
     this.cb.Size          = new Size(80, 100);
 }
Пример #3
0
        public static CardBox LoadCbTemplate(string image_location)
        {
            CardBox cb = new CardBox();

            try
            {
                cb.ImageLocation = image_location;
            }catch (Exception e)
            {
                Debug.Write(e.Message);
                return(null);
            }
            cb.SizeMode = PictureBoxSizeMode.StretchImage;
            cb.Size     = new Size(80, 100);
            return(cb);
        }