1 // 2 // System.Web.UI.Design.DataSourceDesigner 3 // 4 // Author: 5 // Atsushi Enomoto (atsushi@ximian.com) 6 // 7 // (C) 2007 Novell, Inc (http://www.novell.com) 8 // 9 10 // 11 // Permission is hereby granted, free of charge, to any person obtaining 12 // a copy of this software and associated documentation files (the 13 // "Software"), to deal in the Software without restriction, including 14 // without limitation the rights to use, copy, modify, merge, publish, 15 // distribute, sublicense, and/or sell copies of the Software, and to 16 // permit persons to whom the Software is furnished to do so, subject to 17 // the following conditions: 18 // 19 // The above copyright notice and this permission notice shall be 20 // included in all copies or substantial portions of the Software. 21 // 22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 29 // 30 31 32 using System; 33 using System.ComponentModel; 34 using System.ComponentModel.Design; 35 using System.Security.Permissions; 36 37 namespace System.Web.UI.Design { 38 39 [SecurityPermission (SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)] 40 public class DataSourceDesigner : ControlDesigner, IDataSourceDesigner 41 { 42 [MonoTODO] SchemasEquivalent(IDataSourceSchema schema1, IDataSourceSchema schema2)43 public static bool SchemasEquivalent (IDataSourceSchema schema1, IDataSourceSchema schema2) 44 { 45 throw new NotImplementedException (); 46 } 47 48 [MonoTODO] ViewSchemasEquivalent(IDataSourceViewSchema viewSchema1, IDataSourceViewSchema viewSchema2)49 public static bool ViewSchemasEquivalent (IDataSourceViewSchema viewSchema1, IDataSourceViewSchema viewSchema2) 50 { 51 throw new NotImplementedException (); 52 } 53 DataSourceDesigner()54 public DataSourceDesigner () 55 { 56 } 57 58 public event EventHandler DataSourceChanged; 59 public event EventHandler SchemaRefreshed; 60 61 [MonoTODO] 62 public override DesignerActionListCollection ActionLists { 63 get { throw new NotImplementedException (); } 64 } 65 66 [MonoTODO] 67 public virtual bool CanConfigure { 68 get { throw new NotImplementedException (); } 69 } 70 71 [MonoTODO] 72 public virtual bool CanRefreshSchema { 73 get { throw new NotImplementedException (); } 74 } 75 76 [MonoTODO] 77 protected bool SuppressingDataSourceEvents { 78 get { throw new NotImplementedException (); } 79 } 80 81 [MonoTODO] Configure()82 public virtual void Configure () 83 { 84 throw new NotImplementedException (); 85 } 86 87 [MonoTODO] GetDesignTimeHtml()88 public override string GetDesignTimeHtml () 89 { 90 throw new NotImplementedException (); 91 } 92 93 [MonoTODO] GetView(string viewName)94 public virtual DesignerDataSourceView GetView (string viewName) 95 { 96 throw new NotImplementedException (); 97 } 98 99 [MonoTODO] GetViewNames()100 public virtual string [] GetViewNames () 101 { 102 throw new NotImplementedException (); 103 } 104 OnDataSourceChanged(EventArgs e)105 protected virtual void OnDataSourceChanged (EventArgs e) 106 { 107 if (DataSourceChanged != null) 108 DataSourceChanged (this, e); 109 } 110 OnSchemaRefreshed(EventArgs e)111 protected virtual void OnSchemaRefreshed (EventArgs e) 112 { 113 if (SchemaRefreshed != null) 114 SchemaRefreshed (this, e); 115 } 116 117 [MonoTODO] RefreshSchema(bool preferSilent)118 public virtual void RefreshSchema (bool preferSilent) 119 { 120 throw new NotImplementedException (); 121 } 122 123 [MonoTODO] ResumeDataSourceEvents()124 public virtual void ResumeDataSourceEvents () 125 { 126 throw new NotImplementedException (); 127 } 128 129 [MonoTODO] SuppressDataSourceEvents()130 public virtual void SuppressDataSourceEvents () 131 { 132 throw new NotImplementedException (); 133 } 134 } 135 } 136 137