示例#1
0
        /// <summary>
        /// Load the recent files from the ini file
        /// </summary>        
        public static string[] Load()
        {
            Ini settingsFile = new Ini();
            string[] files = new string[MAX_FILES];

            for (int i = 0; i < MAX_FILES; i++)
            {
                if (settingsFile.HasEntry(SECTION_FILES, "File " + (i + 1)))
                    files[i] = settingsFile.GetValue(SECTION_FILES, "File " + (i + 1)).ToString();
            }

            return files;
        }