public void Card_MouseMove(object sender, MouseEventArgs e) { var c = sender as PictureBox; CardActive = c; if (CardActive.Tag != Game.Zones["detail"].Pic.Tag) { Game.Zones["detail"].Pic.Tag = CardActive.Tag; Game.Zones["detail"].Pic.Load(CardActive.ImageLocation); return; } clsZone z = ((clsCard)CardActive.Tag).Container; lblCountCards.Visible = true; lblCountCards.Left = z.x + z.width; lblCountCards.Top = z.y + z.height / 2; lblCountCards.Text = z.Count.ToString(); timHideCount.Enabled = true; if (!_dragging || null == c) { return; } c.Top = e.Y + c.Top - _yPos; c.Left = e.X + c.Left - _xPos; }
public void Card_MM_Count(object sender, MouseEventArgs e) { var c = sender as PictureBox; if (c.Tag == null) { return; } clsZone z = ((clsCard)c.Tag).Container; lblCountCards.Visible = true; lblCountCards.Left = z.x + z.width; lblCountCards.Top = z.y + z.height / 2; lblCountCards.Text = z.Count.ToString(); timHideCount.Enabled = true; }