コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="category">Specifies the category of order notes to display, and the category under which new notes are placed.</param>
        /// <param name="canEdit">Specifies if the component is editable.  If not, all action buttons are disabled.</param>
        public OrderNoteSummaryComponent(OrderNoteCategory category, bool canEdit)
            : base(false)
        {
            Platform.CheckForNullReference(category, "category");

            _canEdit  = canEdit;
            _category = category;
            _notes    = new List <OrderNoteDetail>();

            this.Table.UpdateNoteClickLinkDelegate = UpdateOrderNoteDetail;
        }
コード例 #2
0
 /// <summary>
 /// Constructor allowing edits.
 /// </summary>
 /// <param name="category"></param>
 public OrderNoteSummaryComponent(OrderNoteCategory category)
     : this(category, true)
 {
 }