Skip to content

Commit

Permalink
调整菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Aug 23, 2024
1 parent a38bbf2 commit cc56441
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/StartManager/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Application
public static void StartServer() => Start("ServerSample.exe", GetAppDirectory());

public static void Reset() => Start("resource.bat", GetParent());

private static string GetAppDirectory() => Path.Combine(GetParent(), "run", "app");

private static string GetParent()
Expand Down
18 changes: 9 additions & 9 deletions src/StartManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ static void Main(string[] args)
switch (input)
{
case "1":
Application.Reset();
break;
case "2":
Application.StartFileServer();
break;
case "3":
case "2":
Application.StartServer();
break;
case "4":
case "3":
Application.StartClient();
break;
case "R":
Application.Reset();
break;
case "E":
exit = true;
break;
Expand All @@ -36,10 +36,10 @@ static void Main(string[] args)
static void ShowMenu()
{
Console.WriteLine("请选择一个选项:");
Console.WriteLine("1. 还原run目录");
Console.WriteLine("2. 启动文件服务端");
Console.WriteLine("3. 启动服务端");
Console.WriteLine("4. 启动客户端");
Console.WriteLine("1. 启动文件服务端");
Console.WriteLine("2. 启动服务端");
Console.WriteLine("3. 启动客户端");
Console.WriteLine("R. 初始化run目录");
Console.WriteLine("E. 退出");
Console.Write("输入你的选择: ");
}
Expand Down

0 comments on commit cc56441

Please sign in to comment.