2 * Namespace: System.Web.UI.WebControls
\r
3 * Class: WebColorConverter
\r
5 * Author: Gaurav Vaish
\r
6 * Maintainer: gvaish@iitk.ac.in
\r
7 * Contact: <my_scripts2001@yahoo.com>, <gvaish@iitk.ac.in>
\r
8 * Implementation: yes
\r
11 * (C) Gaurav Vaish (2002)
\r
15 using System.Drawing;
\r
17 using System.Web.UI;
\r
19 namespace System.Web.UI.WebControls
\r
21 public class WebColorConverter : ColorConverter
\r
23 public WebColorConverter(): base()
\r
27 [MonoTODO("Implement_If_Color_Is_#xxxxxx_OR_A_KnownColor")]
\r
28 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
\r
32 string val = ((string)value).Trim();
\r
33 if(val == String.Empty || val.Lenth == 0)
\r
39 throw new NotImplementedException();
\r
42 return ConvertFrom(context, culture, value);
\r
45 [MonoTODO("Convert_To_For_KnownColor_And_For_#xxxxxx")]
\r
46 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
\r
48 if(destinationType == null)
\r
50 throw new ArgumentNullException("destinationType");
\r
52 throw new NotImplementedException();
\r