Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -26,7 +26,6 @@
//
//
#if NET_2_0
namespace System.Drawing.Design
{
@@ -36,5 +35,4 @@ namespace System.Drawing.Design
}
}
#endif

View File

@@ -35,9 +35,7 @@ using System.Runtime.InteropServices;
namespace System.Drawing.Design {
#if NET_2_0
[ComImport]
#endif
[Guid("4BACD258-DE64-4048-BC4E-FEDBEF9ACB76"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IToolboxService

View File

@@ -31,8 +31,5 @@ using System.ComponentModel;
namespace System.Drawing.Design {
#if ONLY_1_1
[Serializable]
#endif
public delegate void PropertyValueUIHandler (ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList);
}

View File

@@ -30,9 +30,6 @@ using System.ComponentModel;
namespace System.Drawing.Design {
#if ONLY_1_1
[Serializable]
#endif
public delegate void PropertyValueUIItemInvokeHandler (
ITypeDescriptorContext context,
PropertyDescriptor descriptor,

View File

@@ -28,9 +28,6 @@
namespace System.Drawing.Design {
#if ONLY_1_1
[Serializable]
#endif
public delegate void ToolboxComponentsCreatedEventHandler (object sender, ToolboxComponentsCreatedEventArgs e);
}

View File

@@ -28,8 +28,5 @@
namespace System.Drawing.Design {
#if ONLY_1_1
[Serializable]
#endif
public delegate void ToolboxComponentsCreatingEventHandler (object sender, ToolboxComponentsCreatingEventArgs e);
}

View File

@@ -82,11 +82,7 @@ namespace System.Drawing.Design
}
set { SetValue ("Filter", value); }
}
#if NET_2_0
public virtual bool Locked {
#else
protected bool Locked {
#endif
get { return locked; }
}
@@ -94,7 +90,6 @@ namespace System.Drawing.Design
get { return GetValue ("TypeName"); }
set { SetValue ("TypeName", value); }
}
#if NET_2_0
public string Company {
get { return (string) properties["Company"]; }
set { SetValue ("Company", value); }
@@ -135,7 +130,6 @@ namespace System.Drawing.Design
get { return string.Empty; }
}
#endif
protected void CheckUnlocked ()
{
if (locked)
@@ -171,7 +165,6 @@ namespace System.Drawing.Design
return components;
}
#if NET_2_0
protected virtual IComponent[] CreateComponentsCore (IDesignerHost host, IDictionary defaultValues)
{
IComponent[] components = CreateComponentsCore (host);
@@ -205,7 +198,6 @@ namespace System.Drawing.Design
return value;
}
}
#endif
protected virtual void Deserialize (SerializationInfo info, StreamingContext context)
{
@@ -238,12 +230,10 @@ namespace System.Drawing.Design
return string.Concat (TypeName, DisplayName).GetHashCode ();
}
#if NET_2_0
public Type GetType (IDesignerHost host)
{
return GetType (host, this.AssemblyName, this.TypeName, false);
}
#endif
protected virtual Type GetType (IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference)
{
@@ -308,11 +298,7 @@ namespace System.Drawing.Design
Serialize (info, context);
}
#if NET_2_0
public virtual void Lock ()
#else
public void Lock ()
#endif
{
locked = true;
}
@@ -344,7 +330,6 @@ namespace System.Drawing.Design
return DisplayName;
}
#if NET_2_0
protected void ValidatePropertyType (string propertyName, object value, Type expectedType, bool allowNull)
{
if (!allowNull && (value == null))
@@ -396,13 +381,6 @@ namespace System.Drawing.Design
CheckUnlocked ();
properties [propertyName] = ValidatePropertyValue (propertyName, value);
}
#else
private void SetValue (string propertyName, object value)
{
CheckUnlocked ();
properties [propertyName] = value;
}
#endif
private string GetValue (string propertyName)
{
string s = (string) properties [propertyName];

View File

@@ -28,9 +28,6 @@
namespace System.Drawing.Design {
#if ONLY_1_1
[Serializable]
#endif
public delegate ToolboxItem ToolboxItemCreatorCallback(
object serializedObject,
string format);

View File

@@ -100,10 +100,8 @@ namespace System.Drawing.Design
// but on the other hand the class is not abstract. Could never observe it did paint anything
return;
}
#if NET_2_0
public virtual bool IsDropDownResizable {
get { return false; }
}
#endif
}
}