//internal string FileWatcherOpenFilePath;

        public ApplicationConfiguration()
        {
            WindowPosition     = new WindowPosition();
            ApplicationUpdates = new ApplicationUpdates();

            OpenDocuments = new List <MarkdownDocument>();

            LastFolder   = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            CommonFolder = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "West Wind Markdown Monster");

            BugReportUrl = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=ReportBug";
            //BugReportUrl = "http://localhost/MarkdownMonster/bugreport.ashx?method=ReportBug";
            TelemetryUrl = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=Telemetry";

            ApplicationTheme  = Themes.Dark;
            RenderTheme       = "dharkan";
            RememberOpenFiles = true;

            EditorTheme            = "twilight";
            EditorFontSize         = 20;
            EditorWrapText         = true;
            EditorEnableSpellcheck = true;
            EditorDictionary       = "EN_US";

            OpenCommandLine   = "cmd.exe";
            OpenFolderCommand = "explorer.exe";

            UseSingleWindow = true;
            ReportErrors    = true;
        }
        //internal string FileWatcherOpenFilePath;

        public ApplicationConfiguration()
        {
            WindowPosition     = new WindowPosition();
            ApplicationUpdates = new ApplicationUpdates();

            OpenDocuments = new List <MarkdownDocument>();

            LastFolder   = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            CommonFolder = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "West Wind Markdown Monster");
            //FileWatcherOpenFilePath =  Path.Combine(
            //      Path.GetTempPath(),
            //     "__mm_openfile.txt");

            ApplicationTheme  = Themes.Dark;
            RenderTheme       = "dharkan";
            RememberOpenFiles = true;

            EditorTheme            = "twilight";
            EditorFontSize         = 19;
            EditorWrapText         = true;
            EditorEnableSpellcheck = true;
            EditorDictionary       = "EN_US";

            OpenCommandLine   = "cmd.exe";
            OpenFolderCommand = "explorer.exe";

            UseSingleWindow = true;
        }
        public ApplicationConfiguration()
        {
            MarkdownOptions    = new MarkdownOptions();
            WindowPosition     = new WindowPosition();
            ApplicationUpdates = new ApplicationUpdates();
            OpenDocuments      = new List <MarkdownDocument>();

            LastFolder   = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            CommonFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Markdown Monster");

            MarkdownParserName = "MarkDig";
            PreviewSyncMode    = PreviewSyncMode.EditorAndPreview;

            AutoSaveBackups   = true;
            AutoSaveDocuments = false;


            BugReportUrl = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=ReportBug";
            //BugReportUrl = "http://localhost.fiddler/MarkdownMonster/bugreport/bugreport.ashx?method=ReportBug";
            TelemetryUrl  = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=Telemetry";
            SendTelemetry = true;

            ApplicationTheme          = Themes.Dark;
            RenderTheme               = "Github";
            EditorTheme               = "twilight";
            EditorFont                = "Consolas";
            EditorFontSize            = 17;
            EditorWrapText            = true;
            EditorHighlightActiveLine = true;
            AllowRenderScriptTags     = true;
            EditorEnableSpellcheck    = true;
            EditorDictionary          = "EN_US";
            EditorKeyboardHandler     = "default"; // vim,emacs

            OpenCommandLine   = "cmd.exe";
            OpenFolderCommand = "explorer.exe";

            RememberLastDocuments = 3;
            ReportErrors          = true;

            UseSingleWindow = false;

            IsPreviewVisible        = true;
            OpenInPresentationMode  = false;
            AlwaysUsePreviewRefresh = false;

            FirstRun = true;
        }
        //internal string FileWatcherOpenFilePath;

        public ApplicationConfiguration()
        {
            WindowPosition     = new WindowPosition();
            ApplicationUpdates = new ApplicationUpdates();

            OpenDocuments = new List <MarkdownDocument>();

            LastFolder   = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            CommonFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Markdown Monster");

            // TODO: REMOVE THIS AFTER A WHILE
            try
            {
                string oldFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                                                "West Wind Markdown Monster");
                if (Directory.Exists(oldFolder))
                {
                    if (!Directory.Exists(CommonFolder))
                    {
                        Directory.CreateDirectory(CommonFolder);
                    }

                    var dir = new DirectoryInfo(oldFolder);
                    foreach (var file in dir.EnumerateFiles("*.*"))
                    {
                        file.CopyTo(Path.Combine(CommonFolder, file.Name), true);
                        file.Delete();
                    }
                    dir.Delete(true);
                }
            }
            catch
            { }
            // TODO: END REMOVE THIS AFTER A WHILE

            PreviewSyncMode = PreviewSyncMode.EditorToPreview;

            BugReportUrl = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=ReportBug";
            //BugReportUrl = "http://localhost/MarkdownMonster/bugreport.ashx?method=ReportBug";
            TelemetryUrl  = "https://markdownmonster.west-wind.com/bugreport/bugreport.ashx?method=Telemetry";
            SendTelemetry = true;

            ApplicationTheme          = Themes.Dark;
            RenderTheme               = "Github";
            EditorTheme               = "twilight";
            EditorFont                = "Consolas";
            EditorFontSize            = 17;
            EditorWrapText            = true;
            EditorHighlightActiveLine = true;
            EditorEnableSpellcheck    = true;
            EditorDictionary          = "EN_US";

            OpenCommandLine   = "cmd.exe";
            OpenFolderCommand = "explorer.exe";

            RememberOpenFiles = true;
            UseSingleWindow   = true;
            ReportErrors      = true;
            IsPreviewVisible  = true;

            FirstRun = true;
        }