コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PromotionItemCollection"/> class.
        /// </summary>
        /// <param name="helper">The helper.</param>
        internal PromotionItemCollection(MarketingHelper helper)
        {
            _Helper = helper;

            this._ValidRowIndexes = new int[helper.Promotions.Promotion.Count];
            for (int i = 0; i < this._Helper.Promotions.Promotion.Count; i++)
            {
                this._ValidRowIndexes[i] = i;
            }
            this._ValidPromotionItems = new PromotionItem[this._ValidRowIndexes.Length];
        }
コード例 #2
0
ファイル: PromotionItem.cs プロジェクト: hdgardner/ECF
 /// <summary>
 /// Initializes a new instance of the <see cref="PromotionItem"/> class.
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="rowIndex">Index of the row.</param>
 internal PromotionItem(MarketingHelper helper, int rowIndex)
 {
     _Helper   = helper;
     _RowIndex = rowIndex;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PromotionItemCollection"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="validRowIndexes">The valid row indexes.</param>
 internal PromotionItemCollection(PromotionItemCollection source, int[] validRowIndexes)
 {
     this._Helper              = source._Helper;
     this._ValidRowIndexes     = validRowIndexes;
     this._ValidPromotionItems = new PromotionItem[this._ValidRowIndexes.Length];
 }