diff --git a/build/Build.proj b/build/Build.proj deleted file mode 100644 index 498637ccd4..0000000000 --- a/build/Build.proj +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - ..\MSBuildCommunityTasks - ..\UmbracoMSBuildTasks - - - - - - - - - - .$(BUILD_NUMBER) - - - - Release - _BuildOutput\ - UmbracoCms$(DECIMAL_BUILD_NUMBER).zip - UmbracoCms.AllBinaries$(DECIMAL_BUILD_NUMBER).zip - UmbracoCms.WebPI$(DECIMAL_BUILD_NUMBER).zip - False - ..\..\build\$(BuildFolder) - $(MSBuildProjectDirectory)\$(BuildFolder) - $(BuildFolder)bin\ - $(BuildFolder)WebApp\ - $(BuildFolder)WebPi\ - $(BuildFolderRelativeToProjects)bin\ - $(BuildFolderAbsolutePath)bin\ - $(BuildFolderRelativeToProjects)WebApp\ - $(BuildFolderAbsolutePath)WebApp\ - $(BuildFolderRelativeToProjects)WebPi\ - $(BuildFolderAbsolutePath)WebPi\ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/umbraco.editorControls/userControlWrapper/IUsercontrolDataEditor.cs b/src/umbraco.editorControls/userControlWrapper/IUsercontrolDataEditor.cs index 36d7344045..b480e973a7 100644 --- a/src/umbraco.editorControls/userControlWrapper/IUsercontrolDataEditor.cs +++ b/src/umbraco.editorControls/userControlWrapper/IUsercontrolDataEditor.cs @@ -1,7 +1,14 @@ +using umbraco.cms.businesslogic.property; + namespace umbraco.editorControls.userControlGrapper { public interface IUsercontrolDataEditor { object value { get; set;} } + + public interface IUsercontrolPropertyData + { + Property PropertyObject { set; } + } } diff --git a/src/umbraco.editorControls/userControlWrapper/usercontrolDataEditor.cs b/src/umbraco.editorControls/userControlWrapper/usercontrolDataEditor.cs index fe088c1cca..8e1831ea50 100644 --- a/src/umbraco.editorControls/userControlWrapper/usercontrolDataEditor.cs +++ b/src/umbraco.editorControls/userControlWrapper/usercontrolDataEditor.cs @@ -7,7 +7,7 @@ using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; - +using umbraco.cms.businesslogic.property; using umbraco.interfaces; using umbraco.editorControls; using umbraco.cms.businesslogic.datatype; @@ -83,6 +83,14 @@ namespace umbraco.editorControls.userControlGrapper } + // Add property data to the usercontrol if it supports it + // TODO: Find the best way to test for an interface! + IUsercontrolPropertyData propertyData = oControl as IUsercontrolPropertyData; + if (propertyData != null) + { + propertyData.PropertyObject = new Property(((usercontrolData)_data).PropertyId); + } + this.Controls.Add(oControl); if (!Page.IsPostBack)