protected override void Initialize() { // Initialize deck for (int suit = 0; suit < 4; suit++) { for (int rank = 0; rank < 13; rank++) { CardInfo cardInfo = new CardInfo(suit, rank); deck[suit * 13 + rank] = cardInfo; } } // Create the List objects for the 8 piles for (int pile = 0; pile < 8; pile++) { piles[pile] = new List <CardInfo>(); } // Create the List objects for the 4 finals for (int final = 0; final < 4; final++) { finals[final] = new List <CardInfo>(); } // Create congratulations component congratsComponent = new CongratulationsComponent(this); congratsComponent.Enabled = false; this.Components.Add(congratsComponent); base.Initialize(); }
protected override void Initialize() { // Initialize deck for (int suit = 0; suit < 4; suit++) for (int rank = 0; rank < 13; rank++) { CardInfo cardInfo = new CardInfo(suit, rank); deck[suit * 13 + rank] = cardInfo; } // Create the List objects for the 8 piles for (int pile = 0; pile < 8; pile++) piles[pile] = new List<CardInfo>(); // Create the List objects for the 4 finals for (int final = 0; final < 4; final++) finals[final] = new List<CardInfo>(); // Create congratulations component congratsComponent = new CongratulationsComponent(this); congratsComponent.Enabled = false; this.Components.Add(congratsComponent); base.Initialize(); }