diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/Editors/RebelSoftware/InstallationScript/InstallationScriptEditor.cs b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/Editors/RebelSoftware/InstallationScript/InstallationScriptEditor.cs
index 1f1ab7e3..17f7d35e 100644
--- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/Editors/RebelSoftware/InstallationScript/InstallationScriptEditor.cs
+++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/Editors/RebelSoftware/InstallationScript/InstallationScriptEditor.cs
@@ -7,9 +7,11 @@ using System.Windows.Forms;
using UniversalEditor.UserInterface.WindowsForms;
-using UniversalEditor.Plugins.RebelSoftware.ObjectModels.InstallationScript;
+using UniversalEditor.ObjectModels.RebelSoftware.InstallationScript;
using UniversalEditor.ObjectModels.RebelSoftware.InstallationScript.Dialogs;
+using ISDialog = UniversalEditor.ObjectModels.RebelSoftware.InstallationScript.Dialog;
+
namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
{
public partial class InstallationScriptEditor : Editor
@@ -19,6 +21,17 @@ namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
InitializeComponent();
}
+ private static UserInterface.EditorReference _er = null;
+ public override UserInterface.EditorReference MakeReference()
+ {
+ if (_er == null)
+ {
+ _er = base.MakeReference();
+ _er.SupportedObjectModels.Add(typeof(InstallationScriptObjectModel));
+ }
+ return _er;
+ }
+
protected override void OnObjectModelChanged(EventArgs e)
{
base.OnObjectModelChanged(e);
@@ -30,7 +43,7 @@ namespace UniversalEditor.Editors.RebelSoftware.InstallationScript
TreeNode nodeDialogs = new TreeNode("Dialogs");
- foreach (Dialog dialog in script.Dialogs)
+ foreach (ISDialog dialog in script.Dialogs)
{
TreeNode tn = new TreeNode();
if (dialog is WelcomeDialog)
diff --git a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms.csproj b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms.csproj
index 958f0afa..7ff72cc9 100644
--- a/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms.csproj
+++ b/CSharp/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms/UniversalEditor.Plugins.RebelSoftware.UserInterface.WindowsForms.csproj
@@ -17,7 +17,7 @@
true
full
false
- ..\..\..\Output\Debug\Plugins\
+ ..\..\..\..\Output\Debug\Plugins\
DEBUG;TRACE
prompt
4
@@ -25,7 +25,7 @@
pdbonly
true
- ..\..\..\Output\Release\Plugins\
+ ..\..\..\..\Output\Release\Plugins\
TRACE
prompt
4
@@ -37,7 +37,9 @@
-
+
+ UserControl
+
InstallationScriptEditor.cs
@@ -53,6 +55,10 @@
{2d4737e6-6d95-408a-90db-8dff38147e85}
UniversalEditor.Core
+
+ {8622ebc4-8e20-476e-b284-33d472081f5c}
+ UniversalEditor.UserInterface
+
{30467e5c-05bc-4856-aadc-13906ef4cadd}
UniversalEditor.Essential
@@ -61,6 +67,10 @@
{311885be-3faf-430b-91b2-6ec135d3a8ab}
UniversalEditor.Plugins.RebelSoftware
+
+ {bcbb72bd-0ecb-4ff2-8d91-e466361fb6f9}
+ UniversalEditor.UserInterface.WindowsForms
+