Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditorPlugInSettings" /> class.
        /// </summary>
        /// <param name="contentType">Type of the content.</param>
        /// <param name="version">The version of the settings file.</param>
        protected EditorPlugInSettings(string contentType, Version version)
            : base("Gorgon.Editor." + contentType, version)
        {
            // Set the path for the application settings.
            base.Path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).FormatDirectory(System.IO.Path.DirectorySeparatorChar)
                        + "Tape_Worm".FormatDirectory(System.IO.Path.DirectorySeparatorChar)
                        + "Gorgon.Editor".FormatDirectory(System.IO.Path.DirectorySeparatorChar)
#if !DEBUG
                        + this.ApplicationName.FormatFileName() + ".config.xml";
#else
                        + ApplicationName.FormatFileName() + ".DEBUG.config.xml";
#endif
        }