public void Trim()
        {
            while (courseDescription.Count() != 0)
            {
                LineDescriptionEx lde = courseDescription.Last();

                if (lde == null || lde.IsEmpty())
                {
                    courseDescription.RemoveAt(courseDescription.Count() - 1);
                }
                else
                {
                    break;
                }
            }

            while (secretDescription.Count() != 0)
            {
                LineDescriptionEx lde = secretDescription.Last();

                if (lde == null || lde.IsEmpty())
                {
                    secretDescription.RemoveAt(secretDescription.Count() - 1);
                }
                else
                {
                    break;
                }
            }
        }
예제 #2
0
        public void Trim()
        {
            while (courseDescription.Count() != 0)
            {
                LineDescriptionEx lde = courseDescription.Last();

                if (lde == null || lde.IsEmpty())
                {
                    courseDescription.RemoveAt(courseDescription.Count() - 1);
                }
                else
                {
                    break;
                }
            }

            while (secretDescription.Count() != 0)
            {
                LineDescriptionEx lde = secretDescription.Last();

                if (lde == null || lde.IsEmpty())
                {
                    secretDescription.RemoveAt(secretDescription.Count() - 1);
                }
                else
                {
                    break;
                }
            }

            foreach (var ld in courseDescription)
            {
                if (ld is object)
                {
                    ld.FixType();
                }
            }
            foreach (var ld in secretDescription)
            {
                if (ld is object)
                {
                    ld.FixType();
                }
            }
        }