From d141ba04ebf9f784f84c5b00970730013613b429 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Wed, 31 Jul 2019 19:07:12 -0400 Subject: [PATCH] Display the document tab for newly-created document --- .../Libraries/UniversalEditor.UserInterface/MainWindow.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs index f09869f2..84460181 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -251,6 +251,7 @@ namespace UniversalEditor.UserInterface Glue.Common.Methods.SendApplicationEvent(ae); */ + InitDocTab (page.Document.Title, page); } } public void NewProject(bool combineObjects = false) @@ -459,15 +460,10 @@ namespace UniversalEditor.UserInterface #region IHostApplicationWindow implementation public void OpenFile() { - Console.WriteLine("in OpenFile()"); using (DocumentPropertiesDialog dlg = new DocumentPropertiesDialog()) { if (dlg.ShowDialog() == DialogResult.OK) { - Console.WriteLine("====== DOCUMENT PROPERTIES DIALOG RESULTS ======"); - Console.WriteLine(" ObjectModel: {0}", dlg.ObjectModel); - Console.WriteLine(" DataFormat: {0}", dlg.DataFormat); - Console.WriteLine(" Accessor: {0}", dlg.Accessor); Document doc = new Document(dlg.ObjectModel, dlg.DataFormat, dlg.Accessor); OpenFile(doc); }