1 // 2 // BaseDataBoundControlDesigner.cs 3 // 4 // Author: 5 // Marek Habersack <mhabersack@novell.com> 6 // 7 // (C) 2007 Novell, Inc. 8 // 9 // 10 // Permission is hereby granted, free of charge, to any person obtaining 11 // a copy of this software and associated documentation files (the 12 // "Software"), to deal in the Software without restriction, including 13 // without limitation the rights to use, copy, modify, merge, publish, 14 // distribute, sublicense, and/or sell copies of the Software, and to 15 // permit persons to whom the Software is furnished to do so, subject to 16 // the following conditions: 17 // 18 // The above copyright notice and this permission notice shall be 19 // included in all copies or substantial portions of the Software. 20 // 21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28 // 29 30 using System; 31 using System.Collections; 32 using System.ComponentModel; 33 using System.Windows.Forms; 34 using System.Web.UI.WebControls; 35 36 namespace System.Web.UI.Design.WebControls 37 { 38 public abstract class BaseDataBoundControlDesigner : ControlDesigner 39 { 40 [MonoNotSupported ("")] BaseDataBoundControlDesigner()41 protected BaseDataBoundControlDesigner () 42 { 43 throw new NotImplementedException (); 44 } 45 46 [MonoNotSupported ("")] 47 public string DataSource { 48 [MonoNotSupported ("")] 49 get { 50 throw new NotImplementedException (); 51 } 52 53 [MonoNotSupported ("")] 54 set { 55 throw new NotImplementedException (); 56 } 57 } 58 59 [MonoNotSupported ("")] 60 public string DataSourceID { 61 [MonoNotSupported ("")] 62 get { 63 throw new NotImplementedException (); 64 } 65 66 [MonoNotSupported ("")] 67 set { 68 throw new NotImplementedException (); 69 } 70 } 71 72 [MonoNotSupported ("")] Dispose(bool disposing)73 protected override void Dispose (bool disposing) 74 { 75 throw new NotImplementedException (); 76 } 77 78 [MonoNotSupported ("")] GetDesignTimeHtml()79 public override string GetDesignTimeHtml () 80 { 81 throw new NotImplementedException (); 82 } 83 84 [MonoNotSupported ("")] Initialize(IComponent component)85 public override void Initialize (IComponent component) 86 { 87 throw new NotImplementedException (); 88 } 89 90 [MonoNotSupported ("")] ShowCreateDataSourceDialog(ControlDesigner controlDesigner, Type dataSourceType, bool configure, out string dataSourceID)91 public static DialogResult ShowCreateDataSourceDialog (ControlDesigner controlDesigner, Type dataSourceType, 92 bool configure, out string dataSourceID) 93 { 94 throw new NotImplementedException (); 95 } 96 ConnectToDataSource()97 protected abstract bool ConnectToDataSource (); CreateDataSource()98 protected abstract void CreateDataSource (); DataBind(BaseDataBoundControl dataBoundControl)99 protected abstract void DataBind (BaseDataBoundControl dataBoundControl); DisconnectFromDataSource()100 protected abstract void DisconnectFromDataSource (); 101 102 [MonoNotSupported ("")] GetEmptyDesignTimeHtml()103 protected override string GetEmptyDesignTimeHtml () 104 { 105 throw new NotImplementedException (); 106 } 107 108 [MonoNotSupported ("")] GetErrorDesignTimeHtml(Exception e)109 protected override string GetErrorDesignTimeHtml (Exception e) 110 { 111 throw new NotImplementedException (); 112 } 113 114 [MonoNotSupported ("")] OnDataSourceChanged(bool forceUpdateView)115 protected virtual void OnDataSourceChanged (bool forceUpdateView) 116 { 117 throw new NotImplementedException (); 118 } 119 120 [MonoNotSupported ("")] OnSchemaRefreshed()121 protected virtual void OnSchemaRefreshed () 122 { 123 throw new NotImplementedException (); 124 } 125 126 [MonoNotSupported ("")] PreFilterProperties(IDictionary properties)127 protected override void PreFilterProperties (IDictionary properties) 128 { 129 throw new NotImplementedException (); 130 } 131 } 132 } 133