Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/DataSourceControl.cs')
-rw-r--r--mcs/class/System.Web/System.Web.UI/DataSourceControl.cs96
1 files changed, 13 insertions, 83 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/DataSourceControl.cs b/mcs/class/System.Web/System.Web.UI/DataSourceControl.cs
index 98a47c9d1db..ba0914d2636 100644
--- a/mcs/class/System.Web/System.Web.UI/DataSourceControl.cs
+++ b/mcs/class/System.Web/System.Web.UI/DataSourceControl.cs
@@ -31,16 +31,9 @@
#if NET_2_0
using System.Collections;
using System.Collections.Specialized;
-using System.ComponentModel;
using System.Text;
namespace System.Web.UI {
-
- [DesignerAttribute ("System.Web.UI.Design.DataSourceDesigner, " + Consts.AssemblySystem_Design,
- "System.ComponentModel.Design.IDesigner")]
- [ControlBuilderAttribute (typeof (DataSourceControlBuilder))]
- [NonVisualControlAttribute]
- [BindableAttribute (false)]
public abstract class DataSourceControl : Control, IDataSource, System.ComponentModel.IListSource {
@@ -48,33 +41,15 @@ namespace System.Web.UI {
{
}
- [MonoTODO]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override void ApplyStyleSheetSkin (Page page)
- {
- throw new NotImplementedException ();
- }
-
protected override ControlCollection CreateControlCollection ()
{
return new EmptyControlCollection (this);
}
-
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override Control FindControl (string id)
- {
- return base.FindControl (id);
- }
-
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override void Focus ()
+
+ protected virtual DataSourceView GetView (string viewName)
{
- base.Focus();
+ return null;
}
-
- protected abstract DataSourceView GetView (string viewName);
DataSourceView IDataSource.GetView (string viewName)
{
@@ -96,64 +71,13 @@ namespace System.Web.UI {
return ListSourceHelper.GetList (this);
}
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override bool HasControls ()
- {
- return base.HasControls ();
- }
-
- protected virtual void RaiseDataSourceChangedEvent (EventArgs e)
- {
- EventHandler eh = Events [dataSourceChanged] as EventHandler;
- if (eh != null)
- eh (this, e);
- }
-
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override void RenderControl (HtmlTextWriter tw)
- {
- base.RenderControl (tw);
- }
-
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override string ClientID {
- get { return base.ClientID; }
- }
-
- [MonoTODO ("why override?")]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override ControlCollection Controls {
- get { return base.Controls; }
- }
-
- [MonoTODO ("why override?")]
- [DefaultValue (false)]
- [Browsable (false)]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override bool EnableTheming {
- get { return base.EnableTheming; }
- set { base.EnableTheming = value; }
- }
-
- [MonoTODO ("why override?")]
- [DefaultValue ("")]
- [Browsable (false)]
- [EditorBrowsable (EditorBrowsableState.Never)]
- public override string SkinID {
- get { return base.SkinID; }
- set { base.SkinID = value; }
- }
-
bool System.ComponentModel.IListSource.ContainsListCollection {
get { return ListSourceHelper.ContainsListCollection (this); }
}
- [Browsable (false)]
- [EditorBrowsable (EditorBrowsableState.Never)]
- [DefaultValue (false)]
+ //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 (); }
@@ -164,7 +88,13 @@ namespace System.Web.UI {
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