File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class Application
1111 public static void StartServer ( ) => Start ( "ServerSample.exe" , GetAppDirectory ( ) ) ;
1212
1313 public static void Reset ( ) => Start ( "resource.bat" , GetParent ( ) ) ;
14-
14+
1515 private static string GetAppDirectory ( ) => Path . Combine ( GetParent ( ) , "run" , "app" ) ;
1616
1717 private static string GetParent ( )
Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ static void Main(string[] args)
1212 switch ( input )
1313 {
1414 case "1" :
15- Application . Reset ( ) ;
16- break ;
17- case "2" :
1815 Application . StartFileServer ( ) ;
1916 break ;
20- case "3 " :
17+ case "2 " :
2118 Application . StartServer ( ) ;
2219 break ;
23- case "4 " :
20+ case "3 " :
2421 Application . StartClient ( ) ;
2522 break ;
23+ case "R" :
24+ Application . Reset ( ) ;
25+ break ;
2626 case "E" :
2727 exit = true ;
2828 break ;
@@ -36,10 +36,10 @@ static void Main(string[] args)
3636 static void ShowMenu ( )
3737 {
3838 Console . WriteLine ( "请选择一个选项:" ) ;
39- Console . WriteLine ( "1. 还原run目录 " ) ;
40- Console . WriteLine ( "2. 启动文件服务端 " ) ;
41- Console . WriteLine ( "3. 启动服务端 " ) ;
42- Console . WriteLine ( "4. 启动客户端 " ) ;
39+ Console . WriteLine ( "1. 启动文件服务端 " ) ;
40+ Console . WriteLine ( "2. 启动服务端 " ) ;
41+ Console . WriteLine ( "3. 启动客户端 " ) ;
42+ Console . WriteLine ( "R. 初始化run目录 " ) ;
4343 Console . WriteLine ( "E. 退出" ) ;
4444 Console . Write ( "输入你的选择: " ) ;
4545 }
You can’t perform that action at this time.
0 commit comments