2 // System.Windows.Forms.ErrorProvider
5 // stubbed out by Paul Osman (paul.osman@sympatico.ca)
6 // Dennis Hayes(dennish@raytek.com)
7 // (C) 2002 Ximian, Inc
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
31 using System
.Runtime
.Remoting
;
32 namespace System
.Windows
.Forms
{
37 using System
.ComponentModel
;
38 public class ErrorProvider
: Component
, IExtenderProvider
{
39 internal string dataMember
;
40 ContainerControl parentControl
;
45 public ErrorProvider(ContainerControl parentControl
)
48 this.parentControl
= parentControl
;
52 public ErrorProvider() {
54 this.parentControl
= null;
58 // --- Public Properties
61 public override ISite Site
{
69 public int BlinkRate
{
71 throw new NotImplementedException ();
79 public ErrorBlinkStyle BlinkStyle
{
81 throw new NotImplementedException ();
88 internal ContainerControl cc
;//FIXME: just to get it to run
90 public ContainerControl ContainerControl
{
100 public string DataMember
{
110 public object DataSource
{
112 throw new NotImplementedException ();
122 throw new NotImplementedException ();
130 // --- Protected Methods
134 protected override void Dispose(bool disposing
) { // .NET V1.1 Beta
135 base.Dispose(disposing
);
139 // --- Public Methods
142 public void BindToDataAndErrors(object newDataSource
, string newDataMember
)
148 public bool CanExtend(object extendee
)
150 throw new NotImplementedException ();
154 public string GetError(Control control
)
156 throw new NotImplementedException ();
160 public ErrorIconAlignment
GetIconAlignment(Control control
)
162 throw new NotImplementedException ();
166 public int GetIconPadding(Control control
)
168 throw new NotImplementedException ();
172 public void SetError(Control control
,string value)
178 public void SetIconAlignment(Control control
, ErrorIconAlignment
value)
184 public void SetIconPadding(Control control
, int padding
)
190 public void UpdateBinding()