private void Mont_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (this.eng.Monte.Count() > 0) { Carta getcard = eng.RemoveFromMonte(); Rectangle cardUI = getcard.ElementUI; Canvas.SetLeft(cardUI as UIElement, Canvas.GetLeft(this.Mont)); Canvas.SetTop(cardUI as UIElement, Canvas.GetTop(this.Mont)); this.root.Children.Add(cardUI); this.SendCardToHand(getcard); Player current = eng.GetCurrentPlayer(); current.AddCardToHand(getcard); this.eng.RealignCards(); } else //será chamado o método para reembaralhar { this.Mont.IsEnabled = false; this.Mont.Fill = null; } }