mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
Renamed the `NET_1_2' conditional to `NET_2_0' in all files. svn path=/trunk/mcs/; revision=25877
57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
//
|
|
// System.Web.UI.HierarchicalDataSourceControl
|
|
//
|
|
// Authors:
|
|
// Ben Maurer ([email protected])
|
|
//
|
|
// (C) 2003 Ben Maurer
|
|
//
|
|
|
|
#if NET_2_0
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
using System.Text;
|
|
|
|
namespace System.Web.UI {
|
|
public abstract class HierarchicalDataSourceControl : Control, IHierarchicalDataSource {
|
|
protected HierarchicalDataSourceControl()
|
|
{
|
|
}
|
|
|
|
protected virtual HierarchicalDataSourceView GetHierarchicalView (string viewPath)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
HierarchicalDataSourceView IHierarchicalDataSource.GetHierarchicalView (string viewPath)
|
|
{
|
|
return this.GetHierarchicalView (viewPath);
|
|
}
|
|
|
|
//public override bool EnablePersonalization { get; set; }
|
|
//public override bool EnableTheming { get; set; }
|
|
//public override string SkinID { get; set; }
|
|
public override bool Visible {
|
|
get { return false; }
|
|
set { throw new NotSupportedException (); }
|
|
}
|
|
|
|
static object dataSourceChanged = new object ();
|
|
event EventHandler System.Web.UI.IHierarchicalDataSource.DataSourceChanged {
|
|
add { Events.AddHandler (dataSourceChanged, value); }
|
|
remove { Events.RemoveHandler (dataSourceChanged, value); }
|
|
}
|
|
|
|
protected virtual void OnDataSourceChanged (EventArgs e)
|
|
{
|
|
EventHandler eh = Events [dataSourceChanged] as EventHandler;
|
|
if (eh != null)
|
|
eh (this, e);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
#endif
|
|
|