/// <summary>
 /// Parse the SortOrderSet structure.
 /// </summary>
 /// <param name="s">A stream containing the SortOrderSet structure</param>
 public override void Parse(Stream s)
 {
     base.Parse(s);
     this.SortOrderCount = ReadUshort();
     this.CategorizedCount = ReadUshort();
     this.ExpandedCount = ReadUshort();
     List<SortOrder> tempSortOrders = new List<SortOrder>();
     for (int i = 0; i < this.SortOrderCount; i++)
     {
         SortOrder SortOrder = new SortOrder();
         SortOrder.Parse(s);
         tempSortOrders.Add(SortOrder);
     }
     this.SortOrders = tempSortOrders.ToArray();
 }
        /// <summary>
        /// Parse the RopSortTableRequest structure.
        /// </summary>
        /// <param name="s">An stream containing RopSortTableRequest structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);

            this.RopId = (RopIdType)ReadByte();
            this.LogonId = ReadByte();
            this.InputHandleIndex = ReadByte();
            this.SortTableFlags = (AsynchronousFlags)ReadByte();
            this.SortOrderCount = ReadUshort();
            this.CategoryCount = ReadUshort();
            this.ExpandedCount = ReadUshort();
            List<SortOrder> tempSortOrders = new List<SortOrder>();
            for (int i = 0; i < this.SortOrderCount; i++)
            {
                SortOrder tempSortOrder = new SortOrder();
                tempSortOrder.Parse(s);
                tempSortOrders.Add(tempSortOrder);
            }
            this.SortOrders = tempSortOrders.ToArray();
        }