Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 6db5f06

Browse files
committed
Allow FormDesigner to edit windows Components.
1 parent 4d8c808 commit 6db5f06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/FormsDesigner/SecondaryDisplayBinding.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public static bool BaseClassIsFormOrControl(ITypeDefinition c)
6464
foreach (var baseType in c.GetNonInterfaceBaseTypes()) {
6565
var baseTypeName = baseType.FullName;
6666
if (baseTypeName == "System.Windows.Forms.Form"
67-
|| baseTypeName == "System.Windows.Forms.UserControl")
67+
|| baseTypeName == "System.Windows.Forms.UserControl"
68+
|| baseTypeName == "System.ComponentModel.Component")
6869
{
6970
return true;
7071
}

0 commit comments

Comments
 (0)