소스 검색

添加TM IO界面

lixiang 1 년 전
부모
커밋
e3ab321150
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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();