From 148c2d32a81e195e63de875f97efc0f20e36529f Mon Sep 17 00:00:00 2001 From: alcexhim Date: Tue, 8 Jul 2014 00:54:13 -0400 Subject: [PATCH] Added 'Create Document' dialog to GTK interface --- .../Engines/GTK/UniversalEditor.Engines.GTK/MainWindow.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/MainWindow.cs b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/MainWindow.cs index e995e81b..f85c866b 100644 --- a/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/MainWindow.cs +++ b/CSharp/Engines/GTK/UniversalEditor.Engines.GTK/MainWindow.cs @@ -4,6 +4,7 @@ using Gtk; using UniversalEditor; using UniversalEditor.UserInterface; using UniversalEditor.Accessors; +using UniversalEditor.Engines.GTK.Dialogs; namespace UniversalEditor.Engines.GTK { @@ -143,7 +144,12 @@ namespace UniversalEditor.Engines.GTK public void NewFile () { - throw new System.NotImplementedException (); + CreateDocumentDialog dlg = new CreateDocumentDialog(); + ResponseType result = (ResponseType)dlg.Run (); + if (result == ResponseType.Ok) + { + + } } public void NewProject (bool combineObjects)