Browse Source

添加TM IO界面

lixiang 1 year ago
parent
commit
e3ab321150
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Venus/Venus_UI/Views/ShellView.xaml.cs

+ 6 - 1
Venus/Venus_UI/Views/ShellView.xaml.cs

@@ -258,11 +258,16 @@ namespace Venus_UI.Views
                 var obj = System.Activator.CreateInstance(t);
 
 
-                if (menu[i].FirstMenu == "PMA" || menu[i].FirstMenu == "PMB" || menu[i].FirstMenu == "PMC" || menu[i].FirstMenu == "PMD" || menu[i].FirstMenu == "TM" || menu[i].FirstMenu == "SETM")
+                if (menu[i].FirstMenu == "PMA" || menu[i].FirstMenu == "PMB" || menu[i].FirstMenu == "PMC" || menu[i].FirstMenu == "PMD")
                 {
                     MethodInfo methodInfo = t.GetMethod("Init", new Type[] { typeof(string) });
                     methodInfo?.Invoke(obj, new object[] { menu[i].FirstMenu });
                 }
+                else if (menu[i].SecondMenu == "TM IO")
+                {
+                    MethodInfo methodInfo = t.GetMethod("Init", new Type[] { typeof(string) });
+                    methodInfo?.Invoke(obj, new object[] { "TM"});
+                }
                 if (lastModule != menu[i].FirstMenu)
                 {
                     AduRadioButtonIcon aduRadioButtonIcon = new AduRadioButtonIcon();