Ejemplo n.º 1
0
        public void Save()
        {
            foreach (PropertyDescriptor item in TypeDescriptor.GetProperties(this))
            {
                if (item.IsBrowsable)
                {
                    switch (item.Name)
                    {
                    case "Launch":
                        Launch.SaveSection("Launch", _iniFile);
                        break;

                    case "Activate":
                        Activate.SaveSection("Activate", _iniFile);
                        break;

                    case "LiveMode":
                        LiveMode.SaveSection("LiveMode", _iniFile);
                        break;

                    case "Environment":
                        Environment.SaveSection("Environment", _iniFile);
                        break;

                    case "RegistryKeys":
                        RegistryKeys.SaveSection("RegistryKeys", _iniFile);
                        break;

                    case "RegistryValueWrite":
                        RegistryValueWrite.SaveSection("RegistryValueWrite", _iniFile);
                        break;

                    case "RegistryCleanupIfEmpty":
                        RegistryCleanupIfEmpty.SaveSection("RegistryCleanupIfEmpty", _iniFile);
                        break;

                    case "RegistryCleanupForce":
                        RegistryCleanupForce.SaveSection("RegistryCleanupForce", _iniFile);
                        break;

                    case "RegistryValueBackupDelete":
                        RegistryValueBackupDelete.SaveSection("RegistryValueBackupDelete", _iniFile);
                        break;

                    case "RegistrationFreeCOM":
                        RegistrationFreeCOM.SaveSection("RegistrationFreeCOM", _iniFile);
                        break;

                    case "QtKeysCleanup":
                        QtKeysCleanup.SaveSection("QtKeysCleanup", _iniFile);
                        break;

                    case "FileWriteN":
                        FileWriteN.SaveSection("FileWrite", _iniFile);
                        break;

                    case "FilesMove":
                        FilesMove.SaveSection("FilesMove", _iniFile);
                        break;

                    case "DirectoriesMove":
                        DirectoriesMove.SaveSection("DirectoriesMove", _iniFile);
                        break;

                    case "DirectoriesCleanupIfEmpty":
                        DirectoriesCleanupIfEmpty.SaveSection("DirectoriesCleanupIfEmpty", _iniFile);
                        break;

                    case "DirectoriesCleanupForce":
                        DirectoriesCleanupForce.SaveSection("DirectoriesCleanupForce", _iniFile);
                        break;

                    case "Language":
                        Language.SaveSection("Language", _iniFile);
                        break;

                    case "LanguageStrings":
                        LanguageStrings.SaveSection("LanguageStrings", _iniFile);
                        break;

                    case "LanguageFile":
                        LanguageFile.SaveSection("LanguageFile", _iniFile);
                        break;

                    case "DirectoriesLink":
                        DirectoriesLink.SaveSection("DirectoriesLink", _iniFile);
                        break;
                    }
                }
            }
        }