PopulateFrom() public méthode

public PopulateFrom ( Dominion descr ) : void
descr Dominion
Résultat void
        private void AddSelectedCardsToStrateyDescription(StrategyDescription strategyDescription)
        {
            Dominion.Card[] cards = GetSelectedCardsAndClear();
            var             originalDescription = strategyDescription.ConvertToDominionStrategy();
            var             newDescription      = originalDescription.AddCardsToPurchaseOrder(cards);

            strategyDescription.PopulateFrom(newDescription);
        }
 private void AddSelectedCardsToStrateyDescription(StrategyDescription strategyDescription)
 {
     Dominion.Card[] cards = GetSelectedCardsAndClear();
     var originalDescription = strategyDescription.ConvertToDominionStrategy();
     if (originalDescription.IsEmptyPurchaseOrder)
     {
         originalDescription = Dominion.Strategy.Description.StrategyDescription.GetDefaultDescription(this.appDataContext.GetGameConfig());
     }
     var newDescription = originalDescription.AddCardsToPurchaseOrder(cards);
     strategyDescription.PopulateFrom(newDescription);
 }