예제 #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        static Config()
        {
            Common               = new Common();//基本配置信息
            Common.WorkType      = WorkType.Both;
            Common.EditFontStr   = "Consolas";
            Common.EditFontIndex = 6;
            Common.LineBar       = true;
            Common.ShowEndVl     = false;
            Common.ShowTabs      = false;
            Common.ShowSpace     = false;
            Common.ShowHightLine = false;
            Common.BackGround    = System.Windows.Media.Colors.Transparent;
            Common.StyleName     = "DefaultStyle";
            Common.Signatrue     = "";
            Common.Theme         = ThemeStyle.Office2013;
            Common.FileList      = new List <string>();

            Blogs             = new BlogsInfo();         //博客配置信息
            CurrBlogsDocument = new BlogsDocumentInfo(); //当前选择的文章的信息(主要用于草稿更新)
            imgcacheDir       = System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, "imgcache");
            if (!System.IO.Directory.Exists(imgcacheDir))
            {
                System.IO.Directory.CreateDirectory(imgcacheDir);
            }
        }
예제 #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        static Config()
        {
            Common               = new Common();//基本配置信息
            Common.WorkType      = WorkType.Both;
            Common.EditFontStr   = "Consolas";
            Common.EditFontIndex = 6;
            Common.LineBar       = true;
            Common.ShowEndVl     = false;
            Common.ShowTabs      = false;
            Common.ShowSpace     = false;
            Common.ShowHightLine = false;
            Common.BackGround    = System.Windows.Media.Colors.Transparent;
            Common.StyleName     = "DefaultStyle";
            Common.Signatrue     = "";
            Common.Theme         = ThemeStyle.Office2013;
            Common.FileList      = new List <string>();

            Blogs             = new BlogsInfo();         //博客配置信息
            CurrBlogsDocument = new BlogsDocumentInfo(); //当前选择的文章的信息(主要用于草稿更新)
        }
예제 #3
0
        /// <summary>
        /// 初始化
        /// </summary>
        static Config()
        {
            Common = new Common();//基本配置信息
            Common.WorkType = WorkType.Both;
            Common.EditFontStr = "Consolas";
            Common.EditFontIndex = 6;
            Common.LineBar = true;
            Common.ShowEndVl = false;
            Common.ShowTabs = false;
            Common.ShowSpace = false;
            Common.ShowHightLine = false;
            Common.BackGround = System.Windows.Media.Colors.Transparent;
            Common.StyleName = "DefaultStyle";
            Common.Signatrue = "";
            Common.Theme = ThemeStyle.Office2013;
            Common.FileList = new List<string>();

            Blogs = new BlogsInfo();//博客配置信息
            CurrBlogsDocument = new BlogsDocumentInfo();//当前选择的文章的信息(主要用于草稿更新)
        }