Ejemplo n.º 1
0
 public GraphicCard(KindsOfCards kinds, CardColour colour, PictureBox pb, bool opened = true) : base(colour, kinds)
 {
     Pb          = pb;
     Pb.SizeMode = PictureBoxSizeMode.Zoom;
     Pb.Visible  = false;
     fileName    = Application.StartupPath + @"\images\" + this.ToString() + ".png";
     Opened      = opened;
 }
Ejemplo n.º 2
0
 public GraphicCard(CardColour colour, KindsOfCards kinds) : this(kinds, colour)
 {
 }
Ejemplo n.º 3
0
 public GraphicCard(KindsOfCards kinds, CardColour colour) : this(kinds, colour, new PictureBox())
 {
 }
Ejemplo n.º 4
0
 public Card(CardColour colour, KindsOfCards kinds)
 {
     Colour = colour;
     Kinds  = kinds;
 }
Ejemplo n.º 5
0
 public GraphicCard(CardColour colour, KindsOfCards kinds) : base(colour, kinds)
 {
 }
Ejemplo n.º 6
0
 public virtual Card GetCard(CardColour colour, KindsOfCards kind)
 {
     return new Card(colour, kind);
 }
Ejemplo n.º 7
0
 public override Card GetCard(CardColour colour, KindsOfCards kind)
 {
     return(new GraphicCard(colour, kind));
 }