/// <summary> /// 显示脚本样例窗口 /// </summary> private void ShowScriptSamplesForm() { GlobalMethods.UI.SetCursor(this, Cursors.WaitCursor); if (this.m_TempletListForm != null && !this.m_TempletListForm.IsDisposed) { this.m_TempletListForm.Activate(); } else { this.m_TempletListForm = new TempletListForm(this); this.m_TempletListForm.Show(this.dockPanel1); } this.m_TempletListForm.OnRefreshView(); GlobalMethods.UI.SetCursor(this, Cursors.Default); }
private void ShowTempletListForm() { if (this.m_TempletListForm == null || this.m_TempletListForm.IsDisposed) { this.m_TempletListForm = new TempletListForm(null); this.m_TempletListForm.TopLevel = false; this.m_TempletListForm.FormBorderStyle = FormBorderStyle.None; this.m_TempletListForm.Dock = DockStyle.Fill; this.m_TempletListForm.Parent = this.panel1; this.m_TempletListForm.AfterSelected += new TreeViewEventHandler(this.TempletListForm_AfterSelected); this.m_TempletListForm.NodeDoubleClick += new TreeNodeMouseClickEventHandler(this.TempletListForm_NodeDoubleClick); } this.m_TempletListForm.Show(); this.m_TempletListForm.BringToFront(); this.m_TempletListForm.OnRefreshView(); }