public CodeGenerationTemplateEditor() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); templateEditor = new TextFileEditor(); pageTemplate.Controls.Add(templateEditor); templateEditor.Dock = DockStyle.Fill; metadataFileEditor = new MetadataFileEditor(); panelMetadataFile.Controls.Add(metadataFileEditor); metadataFileEditor.Dock = DockStyle.Fill; // tvwGroupedMetadataFiles = new MetadataFileSelector(); // pageGroupedMetadataFiles.Controls.Add(tvwGroupedMetadataFiles); // tvwGroupedMetadataFiles.BringToFront(); // tvwGroupedMetadataFiles.Dock = DockStyle.Fill; SetupCommandBars(); }
private void AddNewMetadataFile_Click(object sender, EventArgs e) { // TODO: Add metadata file to appropriate generator commands MetadataFile file = new MetadataFile(_project); _project.MetadataFiles.Add(file); RefreshUI(); IObjectEditor editor = new MetadataFileEditor(); editor.SelectedObject = file; editor.SelectedObjectChanged += new EventHandler(IObjectEditor_SelectedObjectChanged); ObjectEditorManager.OpenObjectEditor(editor); }