**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / ErrorProvider.cs
blobc4d4e3ec5a82c2268dd100a4283cbf6702511350
1 //
2 // System.Windows.Forms.ErrorProvider
3 //
4 // Author:
5 // stubbed out by Paul Osman (paul.osman@sympatico.ca)
6 // Dennis Hayes(dennish@raytek.com)
7 // (C) 2002 Ximian, Inc
8 //
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.
30 using System.Drawing;
31 using System.Runtime.Remoting;
32 namespace System.Windows.Forms {
34 // <summary>
36 // </summary>
37 using System.ComponentModel;
38 public class ErrorProvider : Component, IExtenderProvider {
39 internal string dataMember;
40 ContainerControl parentControl;
42 // --- Constructor
44 [MonoTODO]
45 public ErrorProvider(ContainerControl parentControl)
47 dataMember = "";
48 this.parentControl = parentControl;
51 [MonoTODO]
52 public ErrorProvider() {
53 dataMember = "";
54 this.parentControl = null;
58 // --- Public Properties
60 [MonoTODO]
61 public override ISite Site {
62 set {
63 //FIXME:
64 base.Site = value;
68 [MonoTODO]
69 public int BlinkRate {
70 get {
71 throw new NotImplementedException ();
73 set {
74 //FIXME:
78 [MonoTODO]
79 public ErrorBlinkStyle BlinkStyle {
80 get {
81 throw new NotImplementedException ();
83 set {
84 //FIXME:
88 internal ContainerControl cc;//FIXME: just to get it to run
89 [MonoTODO]
90 public ContainerControl ContainerControl {
91 get {
92 return cc;
94 set {
95 cc = value;
99 [MonoTODO]
100 public string DataMember {
101 get {
102 return dataMember;
104 set {
105 //FIXME:
109 [MonoTODO]
110 public object DataSource {
111 get {
112 throw new NotImplementedException ();
114 set {
115 //FIXME:
119 [MonoTODO]
120 public Icon Icon {
121 get {
122 throw new NotImplementedException ();
124 set {
125 //FIXME:
130 // --- Protected Methods
133 [MonoTODO]
134 protected override void Dispose(bool disposing) { // .NET V1.1 Beta
135 base.Dispose(disposing);
139 // --- Public Methods
141 [MonoTODO]
142 public void BindToDataAndErrors(object newDataSource, string newDataMember)
144 //FIXME:
147 [MonoTODO]
148 public bool CanExtend(object extendee)
150 throw new NotImplementedException ();
153 [MonoTODO]
154 public string GetError(Control control)
156 throw new NotImplementedException ();
159 [MonoTODO]
160 public ErrorIconAlignment GetIconAlignment(Control control)
162 throw new NotImplementedException ();
165 [MonoTODO]
166 public int GetIconPadding(Control control)
168 throw new NotImplementedException ();
171 [MonoTODO]
172 public void SetError(Control control,string value)
174 //FIXME:
177 [MonoTODO]
178 public void SetIconAlignment(Control control, ErrorIconAlignment value)
180 //FIXME:
183 [MonoTODO]
184 public void SetIconPadding(Control control, int padding)
186 //FIXME:
189 [MonoTODO]
190 public void UpdateBinding()
192 //FIXME: