static public TmpltViewPad TreePadSingle() { if (_tmoltViewPad == null) { _tmoltViewPad = new TmpltViewPad(); } return(_tmoltViewPad); }
private WorkbenchForm() { MainTmpltViewPad = TmpltViewPad.TreePadSingle(); this.Controls.Add(MainDockPanel); InitializeComponent(); MainDockPanel.ShowDocumentIcon = true; this.Icon = Icon.ExtractAssociatedIcon(System.Windows.Forms.Application.ExecutablePath); }
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}"); }
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); }