Пример #1
0
        public void XmlSettingsSave(XmlSettings aSettings, string aCategory)
        {
            aSettings.Clear();
            aSettings[aCategory, "__Count"] = Count;
            int index = 0;

            foreach (DbgEntity entity in this)
            {
                string entityCategory = string.Format("DbgEntity_{0:d5}", index++);

                // Get the category where we'll save the settings for this entity to...
                XmlSettingCategory category = aSettings[entityCategory];

                // Save entity specific settings
                entity.Save(category);
            }
        }