Ejemplo n.º 1
0
        private void InitStatus()
        {
            UpdateController controller = new UpdateController(this);

            controller.CheckUpdate();
            //UpgradeService us = new UpgradeService(true);
            //us.SynCheckUpdate();
            MagazineStyle se = MagazineStyle.GetInstance();

            if (se.Exist())
            {
                cb_style.Text = se.Name;
            }
            //2016-06-13 测试 吴海龙
            WordApplication.GetInstance().WordApp = Globals.ThisAddIn.Application;
            //WordApplication.GetInstance().WordApp = Globals.ThisAddIn.Application;
            //日志目录
            if (!Directory.Exists("C:\\log\\"))
            {
                Directory.CreateDirectory("C:\\log\\");
            }
            //多线程下载样式避免,网络卡顿造成word 卡死。
            Thread t = new Thread(DownloadStyles);

            t.Start();
            RefreshStyleList();
        }
Ejemplo n.º 2
0
        public void SetStyle(string name)
        {
            MagazineStyle se = MagazineStyle.GetInstance();

            se.Name = name;
            if (se.Exist())
            {
                cb_style.Text = name.Split('.')[0];
            }
        }