From bac038b82df8f7200242df3ba25ca6759d0697b9 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Mon, 1 Oct 2012 03:57:57 +0500 Subject: [PATCH] Converted treeInit.aspx so that it's codebehind and designer files are in the UI project and only the old TreeInit class exists in the Umbraco.Web project (not the aspx file). It needs to stay there to maintain backwards compatibility for anyone that may have inherited from that file. --- src/Umbraco.Web.UI/Umbraco.Web.UI.csproj | 13 +++- src/Umbraco.Web.UI/umbraco/TreeInit.aspx.cs | 11 +++ .../umbraco/TreeInit.aspx.designer.cs | 15 ++++ src/Umbraco.Web.UI/umbraco/treeInit.aspx | 2 +- src/Umbraco.Web/Umbraco.Web.csproj | 5 -- .../umbraco/treeInit.aspx | 47 ------------- .../umbraco/treeInit.aspx.cs | 56 ++++++++++++++- .../umbraco/treeInit.aspx.designer.cs | 69 ------------------- 8 files changed, 91 insertions(+), 127 deletions(-) create mode 100644 src/Umbraco.Web.UI/umbraco/TreeInit.aspx.cs create mode 100644 src/Umbraco.Web.UI/umbraco/TreeInit.aspx.designer.cs delete mode 100644 src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx delete mode 100644 src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.designer.cs diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index ffe63613bf..632f456c7a 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -260,12 +260,19 @@ Properties\SolutionInfo.cs - - umbraco.aspx + + treeInit.aspx ASPXCodeBehind + + treeInit.aspx + + + umbraco.aspx + ASPXCodeBehind + - Umbraco.aspx.cs + Umbraco.aspx diff --git a/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.cs b/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.cs new file mode 100644 index 0000000000..d4ecff71eb --- /dev/null +++ b/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace Umbraco.Web.UI.Umbraco +{ + public partial class TreeInit : global::umbraco.cms.presentation.TreeInit + { + } +} \ No newline at end of file diff --git a/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.designer.cs b/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.designer.cs new file mode 100644 index 0000000000..1fd780b875 --- /dev/null +++ b/src/Umbraco.Web.UI/umbraco/TreeInit.aspx.designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Umbraco.Web.UI.Umbraco { + + + public partial class TreeInit { + } +} diff --git a/src/Umbraco.Web.UI/umbraco/treeInit.aspx b/src/Umbraco.Web.UI/umbraco/treeInit.aspx index 40e03b241d..2f6d6ca494 100644 --- a/src/Umbraco.Web.UI/umbraco/treeInit.aspx +++ b/src/Umbraco.Web.UI/umbraco/treeInit.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="c#" CodeBehind="treeInit.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.TreeInit" %> +<%@ Page Language="c#" CodeBehind="TreeInit.aspx.cs" AutoEventWireup="True" Inherits="Umbraco.Web.UI.Umbraco.TreeInit" %> <%@ Register Src="controls/Tree/TreeControl.ascx" TagName="TreeControl" TagPrefix="umbraco" %> <%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %> <%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %> diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index 83ed28be7a..2a9711016a 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -1656,12 +1656,8 @@ tree.aspx - treeInit.aspx ASPXCodeBehind - - treeInit.aspx - @@ -2084,7 +2080,6 @@ ASPXCodeBehind - diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx b/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx deleted file mode 100644 index 40e03b241d..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx +++ /dev/null @@ -1,47 +0,0 @@ -<%@ Page Language="c#" CodeBehind="treeInit.aspx.cs" AutoEventWireup="True" Inherits="umbraco.cms.presentation.TreeInit" %> -<%@ Register Src="controls/Tree/TreeControl.ascx" TagName="TreeControl" TagPrefix="umbraco" %> -<%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %> -<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %> - - - - - - - - - - - - - - - - - -
- - -
- -
-
- - diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.cs index 968afbbdab..618577721a 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.cs @@ -27,8 +27,60 @@ namespace umbraco.cms.presentation DataBind(); } - protected TreeService TreeParams { get; private set; } + protected TreeService TreeParams { get; private set; } - + /// + /// Head1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// ClientLoader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::umbraco.uicontrols.UmbracoClientDependencyLoader ClientLoader; + + /// + /// CssInclude1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::ClientDependency.Core.Controls.CssInclude CssInclude1; + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// ScriptManager1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.ScriptManager ScriptManager1; + + /// + /// JTree control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::umbraco.controls.Tree.TreeControl JTree; } } \ No newline at end of file diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.designer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.designer.cs deleted file mode 100644 index cea0eed268..0000000000 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/treeInit.aspx.designer.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace umbraco.cms.presentation { - - - public partial class TreeInit { - - /// - /// Head1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - - /// - /// ClientLoader control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.uicontrols.UmbracoClientDependencyLoader ClientLoader; - - /// - /// CssInclude1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::ClientDependency.Core.Controls.CssInclude CssInclude1; - - /// - /// form1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; - - /// - /// ScriptManager1 control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.ScriptManager ScriptManager1; - - /// - /// JTree control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::umbraco.controls.Tree.TreeControl JTree; - } -}