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

Commit 539dfef

Browse files
Merge pull request #489 from wrpkm/patch-1
Allow FormDesigner to edit windows Components.
2 parents 5cec511 + 6db5f06 commit 539dfef

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)