public SVAddTemplateWindow(SVTreeView svTreeView) { InitializeComponent(); ///进行布局 _svTreeView = svTreeView; this.panel1.Controls.Add(svTreeView); svTreeView.Dock = DockStyle.Fill; }
/// <summary> /// 构造函数 /// </summary> public SVFindWindow() { InitializeComponent(); this.comboBox.SelectedIndexChanged += new EventHandler(comboBox_SelectedIndexChanged); this.comboBox.SelectedIndex = 0; SVInterfaceApplication app = SVApplication.Instance; _treeView = app.TreeProject as SVTreeView; _findView = app.FindWindow as SVFindTextBox; }
/// <summary> /// 添加模板 /// </summary> /// <param Name="sender"></param> /// <param Name="e"></param> void addItem_Click(object sender, EventArgs e) { SVDockMainWindow app = SVApplication.Instance as SVDockMainWindow; SVTreeView treeView = app.TreeProject as SVTreeView; SVAddTemplateWindow win = new SVAddTemplateWindow(treeView); if (win.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { var item = this.listView.Items.Add(treeView.SelectedNode.Text); item.ImageIndex = 0; } ///将树形窗口恢复 app.showProjectWindow(); }
public SVCheckBeforeBuild() { SVInterfaceApplication app = SVApplication.Instance; _treeView = app.TreeProject as SVTreeView; }