Exemplo n.º 1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="piece"></param>
        /// <param name="setlist"></param>
        public SetlistItem(global::Zebra.StandardLibrary.Piece piece, global::Zebra.StandardLibrary.Setlist setlist)
        {
            if (piece == null)
            {
                throw new ArgumentNullException(nameof(piece));
            }
            this.Piece = piece;

            if (setlist == null)
            {
                throw new ArgumentNullException(nameof(setlist));
            }
            this.Setlist = setlist;


            Init();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="piece"></param>
 /// <param name="setlist"></param>
 public static SetlistItem Create(global::Zebra.StandardLibrary.Piece piece, global::Zebra.StandardLibrary.Setlist setlist)
 {
     return(new SetlistItem(piece, setlist));
 }