Exemple #1
0
        static void SdsiteXmlDocument_SdsiteClosing(object sender, EventArgs e)
        {
            ///保存树节点的打开状态
            Service.Sdsite.DesignDataDocument.SetTreeOpenItems(TreePad.TreePadSingle().TreeViewExPad.MyTree.OpenItems);

            Service.Sdsite.SdsiteClosing -= new EventHandler(SdsiteXmlDocument_SdsiteClosing);
        }
Exemple #2
0
 static public TreePad TreePadSingle()
 {
     if (_treePad == null)
     {
         _treePad = new TreePad();
     }
     return(_treePad);
 }
Exemple #3
0
        static void ProjectService_ProjectClosed(object sender, EventArgs e)
        {
            Service.Sdsite.CloseSdsite();

            ///释放树的数据
            TreePad.TreePadSingle().TreeViewExPad.UnloadTreeData();

            ///释放模板视图树数据 ADD BY fenggy on 2008年6月2日
            TmpltViewPad.TreePadSingle().tmpltTreeViewExPad.UnloadTreeData();

            MainForm.Text = StringParserService.Parse("${res:SimplusD.name}");
        }
Exemple #4
0
        static void ProjectService_ProjectOpened(object sender, EventArgs e)
        {
            ///初始化树的数据
            TreePad.TreePadSingle().InitializeSiteTreeData();
            TmpltViewPad.TreePadSingle().InitializeSiteTreeData();

            ///设置树的节点打开
            TreePad.TreePadSingle().TreeViewExPad.MyTree.OpenItems =
                Service.Sdsite.DesignDataDocument.GetTreeOpenItems();

            MainForm.Text = Path.GetFileNameWithoutExtension(Service.Project.SdsiteMainFilePath) + " - " +
                            StringParserService.Parse("${res:SimplusD.name}");

            Service.Sdsite.SdsiteClosing += new EventHandler(SdsiteXmlDocument_SdsiteClosing);
        }