Exemple #1
0
        public void SortEntries()
        {
            if (PartSets != null)
            {
                PartSets.Sort((x, y) => x.SortID - y.SortID);
            }

            if (Part_Colors != null)
            {
                Part_Colors.Sort((x, y) => x.SortID - y.SortID);

                foreach (var partColor in Part_Colors)
                {
                    partColor._Colors.Sort((x, y) => x.SortID - y.SortID);
                }
            }

            if (Bodies != null)
            {
                Bodies.Sort((x, y) => x.SortID - y.SortID);
            }
        }