Exemple #1
0
 private void BtnGetNewDeck_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = _pcf.GetMeANewDeckOfCards();
 }
Exemple #2
0
 public ShellViewModel(IPlayingCardFactory pcf)
 {
     _pcf        = pcf;
     NewDeck     = pcf.GetMeANewDeckOfCards();
     MyFiveCards = new List <MyHand>();
 }
Exemple #3
0
 public List <PlayingCard> ReturnSortedCards(Enums.AscOrDsc ascOrDsc)
 {
     return(ascOrDsc == Enums.AscOrDsc.Ascending ? _playingCardFactory.GetMeANewDeckOfCards().OrderBy(t => t.OverAllHierarchyCardValue).ToList() : _playingCardFactory.GetMeANewDeckOfCards().OrderByDescending(t => t.OverAllHierarchyCardValue).ToList());
 }