X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FSystem.Web.UI.WebControls%2FSiteMapDataSourceView.cs;h=071578a04104ef1808f73082281f8f843ff187ff;hb=b8893efbccd64f92c81082e42b8e480b74881927;hp=0956fc4c37e10f4f2415ef637ed348eb2bfb978d;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/SiteMapDataSourceView.cs b/mcs/class/System.Web/System.Web.UI.WebControls/SiteMapDataSourceView.cs index 0956fc4c37e..071578a0410 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/SiteMapDataSourceView.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/SiteMapDataSourceView.cs @@ -3,8 +3,11 @@ // // Authors: // Ben Maurer (bmaurer@users.sourceforge.net) +// Sanjay Gupta (gsanjay@novell.com) +// Lluis Sanchez Gual (lluis@novell.com) // // (C) 2003 Ben Maurer +// (C) 2004 Novell, Inc. (http://www.novell.com) // // @@ -28,25 +31,44 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 using System.Collections; using System.Collections.Specialized; using System.Text; +using System.Web.UI; -namespace System.Web.UI.WebControls { - public class SiteMapDataSourceView : HierarchicalDataSourceView { - public SiteMapDataSourceView (SiteMapNode node) : this (new SiteMapNodeCollection (node)) {} - public SiteMapDataSourceView (SiteMapNodeCollection collection) +namespace System.Web.UI.WebControls +{ + public class SiteMapDataSourceView : DataSourceView + { + SiteMapNodeCollection collection; + + public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNode node) + : this (owner, viewName, new SiteMapNodeCollection (node)) + { + } + + public SiteMapDataSourceView (SiteMapDataSource owner, string viewName, SiteMapNodeCollection collection) + : base (owner, viewName) { this.collection = collection; } - public override IHierarchicalEnumerable GetHierarchicalList () + + public IEnumerable Select (DataSourceSelectArguments arguments) { + return ExecuteSelect (arguments); + } + + protected internal override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments) + { + arguments.RaiseUnsupportedCapabilitiesError (this); return collection; } - - SiteMapNodeCollection collection; + + protected override void OnDataSourceViewChanged (EventArgs e) + { + base.OnDataSourceViewChanged (e); + } + } } -#endif