Commit 4115e212 authored by 潘栩锋's avatar 潘栩锋 🚴

typeof(Window).IsAssignableFrom(wdIoTipType) 我写反了

parent e7e805d9
......@@ -75,7 +75,7 @@ namespace ThickTcpUiInWindow
private void button_iotip_click(object sender, RoutedEventArgs e)
{
Window w;
if (wdIoTipType != null && wdIoTipType.IsAssignableFrom(typeof(Window)))
if (wdIoTipType != null && typeof(Window).IsAssignableFrom(wdIoTipType))
{
w = Activator.CreateInstance(wdIoTipType) as Window;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment