private void CreatUC() { _tempSel = new UCTemplateSelectWindow(); _tempSel.Dock = DockStyle.Fill; this.Controls.Add(_tempSel); _tempSel.TemplateClicked += new TemplateClickedHandler(TemplateClick); }
public TestTemplateWindow() { InitializeComponent(); UCTemplateSelectWindow tempSel = new UCTemplateSelectWindow(); tempSel.Dock = DockStyle.Fill; this.Controls.Add(tempSel); }