Exemple #1
0
        //clone constructor
        public LargeBODListEntry(LargeBODListEntry entry) : base(entry)
        {
            _AmountMax          = entry.AmountMax;
            _RequireExceptional = entry.RequireExceptional;
            _Material           = entry.Material;

            _Entries = new LargeBulkEntry[entry.Entries.Length];

            //proper cloning is required
            for (int i = 0; i < entry.Entries.Length; i++)
            {
                _Entries[i]        = new LargeBulkEntry(null, entry.Entries[i].Details);
                _Entries[i].Amount = entry.Entries[i].Amount;
            }

            GenerateContentsName();
        }
		//clone constructor
		public LargeBODListEntry( LargeBODListEntry entry ) : base( entry )
		{
			_AmountMax = entry.AmountMax;
			_RequireExceptional = entry.RequireExceptional;
			_Material = entry.Material;			
			
			_Entries = new LargeBulkEntry[ entry.Entries.Length ];
			
			//proper cloning is required
			for( int i = 0; i < entry.Entries.Length; i++ )
			{
				_Entries[i] = new LargeBulkEntry( null, entry.Entries[i].Details );
				_Entries[i].Amount = entry.Entries[i].Amount;
			}
			
			GenerateContentsName();
		}