Author: spouliot
Date: 2007-03-14 09:11:57 -0500 (Wed, 14 Mar 2007)
New Revision: 74256
Modified:
trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
trunk/mcs/class/System.Drawing/System.Drawing.Design/ToolboxItem.cs
Log:
2007-03-14 Sebastien Pouliot <[EMAIL PROTECTED]>
* ToolboxItem.cs: Normalize line endings.
Modified: trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
2007-03-14 13:57:18 UTC (rev 74255)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
2007-03-14 14:11:57 UTC (rev 74256)
@@ -1,3 +1,7 @@
+2007-03-14 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * ToolboxItem.cs: Normalize line endings.
+
2006-11-22 Sebastien Pouliot <[EMAIL PROTECTED]>
* ToolboxItem.cs: Implemented some 2.0 stuff.
Modified: trunk/mcs/class/System.Drawing/System.Drawing.Design/ToolboxItem.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Design/ToolboxItem.cs
2007-03-14 13:57:18 UTC (rev 74255)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Design/ToolboxItem.cs
2007-03-14 14:11:57 UTC (rev 74256)
@@ -99,11 +99,11 @@
get { return (string) properties["Company"]; }
set { SetValue ("Company", value); }
}
-
+
public virtual string ComponentType {
get { return ".NET Component"; }
}
-
+
public AssemblyName[] DependentAssemblies {
get { return (AssemblyName[])
properties["DependentAssemblies"]; }
set {
@@ -113,12 +113,12 @@
SetValue ("DependentAssemblies", names);
}
}
-
+
public string Description {
get { return (string) properties["Description"]; }
set { SetValue ("Description", value); }
- }
-
+ }
+
public bool IsTransient {
get {
object o = properties ["IsTransient"];
@@ -126,7 +126,7 @@
}
set { SetValue ("IsTransient", value); }
}
-
+
public IDictionary Properties {
get { return properties; }
}
@@ -157,20 +157,20 @@
// FIXME - get error handling logic correct
protected virtual IComponent[] CreateComponentsCore
(IDesignerHost host)
- {
- if (host == null)
+ {
+ if (host == null)
throw new ArgumentNullException("host");
OnComponentsCreating(new
ToolboxComponentsCreatingEventArgs(host));
-
- IComponent[] components;
+
+ IComponent[] components;
Type type = GetType(host, AssemblyName, TypeName, true);
- if (type == null)
+ if (type == null)
components = new IComponent[] { };
- else
+ else
components = new IComponent[] {
host.CreateComponent(type) };
- OnComponentsCreated(new
ToolboxComponentsCreatedEventArgs(components));
+ OnComponentsCreated(new
ToolboxComponentsCreatedEventArgs(components));
return components;
}
@@ -182,20 +182,20 @@
}
[MonoTODO]
- public IComponent[] CreateComponents (IDesignerHost host,
IDictionary defaultValues)
+ public IComponent[] CreateComponents (IDesignerHost host,
IDictionary defaultValues)
{
throw new NotImplementedException ();
}
[MonoTODO]
- public Type GetType (IDesignerHost host)
+ public Type GetType (IDesignerHost host)
{
if (host == null)
- return null;
- throw new NotImplementedException ();
+ return null;
+ throw new NotImplementedException ();
}
- protected virtual object FilterPropertyValue (string
propertyName, object value)
+ protected virtual object FilterPropertyValue (string
propertyName, object value)
{
switch (propertyName) {
case "AssemblyName":
@@ -208,7 +208,7 @@
default:
return value;
}
- }
+ }
#endif
protected virtual void Deserialize (SerializationInfo info,
StreamingContext context)
@@ -243,8 +243,8 @@
}
protected virtual Type GetType (IDesignerHost host,
AssemblyName assemblyName, string typeName, bool reference)
- {
- if (typeName == null)
+ {
+ if (typeName == null)
throw new ArgumentNullException ("typeName");
if (host == null)
@@ -256,9 +256,9 @@
throw new Exception("Host does not provide an
ITypeResolutionService");
//TODO: Using Assembly loader to throw errors. Silent
fail and return null?
- typeRes.GetAssembly(assemblyName, true);
- if (reference)
- typeRes.ReferenceAssembly(assemblyName);
+ typeRes.GetAssembly(assemblyName, true);
+ if (reference)
+ typeRes.ReferenceAssembly(assemblyName);
return typeRes.GetType(typeName, true);
}
@@ -338,7 +338,7 @@
}
#if NET_2_0
- protected void ValidatePropertyType (string propertyName,
object value, Type expectedType, bool allowNull)
+ protected void ValidatePropertyType (string propertyName,
object value, Type expectedType, bool allowNull)
{
if (!allowNull && (value == null))
throw new ArgumentNullException ("value");
@@ -350,7 +350,7 @@
}
}
- protected virtual object ValidatePropertyValue (string
propertyName, object value)
+ protected virtual object ValidatePropertyValue (string
propertyName, object value)
{
switch (propertyName) {
case "AssemblyName":
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches