示例#1
0
        /// <summary>Adds a specified business day convention.
        /// </summary>
        /// <param name="value">The business day convention to add.</param>
        /// <returns>A value indicating whether <paramref name="value"/> has been added.</returns>
        public static ItemAddedState Add(IBusinessDayConvention value)
        {
            ItemAddedState state = sm_Pool.Add(value);

//            sm_Logger.Add_PoolItemState(state, value.Name);
            return(state);
        }
示例#2
0
        /// <summary>Adds the specified holiday calendar.
        /// </summary>
        /// <param name="value">The holiday calendar.</param>
        /// <returns>A value indicating whether <paramref name="value"/> has been inserted.</returns>
        public static ItemAddedState Add(IHolidayCalendar value)
        {
            ItemAddedState state = sm_Pool.Add(value);

//            sm_Logger.Add_PoolItemState(state, (value != null) ? value.Name : null);
            return(state);
        }
        /// <summary>Adds the specified day count convention.
        /// </summary>
        /// <param name="value">The business day convention to add.</param>
        /// <returns>A value indicating whether <paramref name="value"/> has been added.</returns>
        public static ItemAddedState Add(IDayCountConvention value)
        {
            ItemAddedState state = sm_Pool.Add(value);

//            sm_Logger.Add_PoolItemState(state, (value != null) ? value.Name : null);
            return(state);
        }
        /// <summary>Adds a specified compounding convention.
        /// </summary>
        /// <param name="value">The compounding convention to add.</param>
        /// <returns>A value indicating whether <paramref name="value"/> has been added.</returns>
        public ItemAddedState Add(IInterestRateCompounding value)
        {
            ItemAddedState state = m_Pool.Add(value);

            //m_LoggingStream.Add_PoolItemState(state, value.Name);
            return(state);
        }
示例#5
0
 /// <summary>Initializes a new instance of the <see cref="ItemAddedEventArgs"/> class.
 /// </summary>
 /// <param name="excelPoolItem">The <see cref="ExcelPoolItem"/> object which has been added.</param>
 /// <param name="state">A value indicating whether <paramref name="excelPoolItem"/> replaced an other item in the <see cref="ExcelPool"/> with the same name.</param>
 internal ItemAddedEventArgs(ExcelPoolItem excelPoolItem, ItemAddedState state)
 {
     Item  = excelPoolItem;
     State = state;
 }
 /// <summary>Initializes a new instance of the <see cref="ItemAddedEventArgs"/> class.
 /// </summary>
 /// <param name="newItem">The new element that has been added into some <see cref="IdentifierNameableDictionary&lt;T&gt;"/> instance.</param>
 /// <param name="state">The state.</param>
 internal ItemAddedEventArgs(IIdentifierNameable newItem, ItemAddedState state)
 {
     NewItem = newItem;
     State   = state;
 }