Ejemplo n.º 1
0
        public Card(int x, int y, eRank rank, eSUIT suit, int mode, eBACK backType, Deck owner, List <Deck> deckList, Imainview refInterface)
            : base()
        {
            this.x            = x;
            this.y            = y;
            this.mode         = mode;
            this.rank         = (int)rank;
            this.suit         = (int)suit;
            this.backType     = backType;
            this.cardHandle   = new cardsdll(width, height);
            this.Size         = new Size(width, height);
            this.owner        = owner;
            this.deckList     = deckList;
            this.refInterface = refInterface;

            this.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.handleMouseDown);
            this.MouseUp     += new System.Windows.Forms.MouseEventHandler(this.handleMouseUp);
            this.MouseMove   += new System.Windows.Forms.MouseEventHandler(this.handleMouseMove);
            this.DoubleClick += new EventHandler(Card_DoubleClick);
        }
Ejemplo n.º 2
0
 public bool drawCardBack(IntPtr hdc, int x, int y, eBACK back)
 {
     return(cdtDraw(hdc, x, y, (int)back, mdFaceDown, 0));
 }