From 71e64ea1ff6364385a9b1f213148ebf1aee2a7ef Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 19 Sep 2020 23:49:56 -0400 Subject: [PATCH] remove unused code --- .../UniversalEditor.UserInterface/IHostApplicationWindow.cs | 2 -- Libraries/UniversalEditor.UserInterface/MainWindow.cs | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs b/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs index 22d43259..c1073102 100644 --- a/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs +++ b/Libraries/UniversalEditor.UserInterface/IHostApplicationWindow.cs @@ -9,8 +9,6 @@ namespace UniversalEditor.UserInterface { public interface IHostApplicationWindow { - event EventHandler WindowClosed; - Document NewFile(); void NewProject(bool combineObjects = false); diff --git a/Libraries/UniversalEditor.UserInterface/MainWindow.cs b/Libraries/UniversalEditor.UserInterface/MainWindow.cs index 9004f645..d1a2a96f 100644 --- a/Libraries/UniversalEditor.UserInterface/MainWindow.cs +++ b/Libraries/UniversalEditor.UserInterface/MainWindow.cs @@ -731,9 +731,6 @@ namespace UniversalEditor.UserInterface private void InitStartPage() { - // StartPageDialog dlg = new StartPageDialog(); - // dlg.ShowDialog(); - StartPagePanel lblStartPage = new StartPagePanel(); InitDocTab("Start Page", "Start Page", lblStartPage); } @@ -761,6 +758,7 @@ namespace UniversalEditor.UserInterface MBS.Framework.UserInterface.Application.Stop(); } } + protected override void OnCreated(EventArgs e) { this.RegisterDropTarget(new DragDropTarget[] @@ -1396,8 +1394,6 @@ namespace UniversalEditor.UserInterface } } - public event EventHandler WindowClosed; - public bool FullScreen { get; set; } private SolutionObjectModel _CurrentSolution = null;