Commit 66184184 authored by SherryChaos's avatar SherryChaos

modify hint

parent 0353ab4d
...@@ -52,6 +52,9 @@ namespace MDPro3 ...@@ -52,6 +52,9 @@ namespace MDPro3
} }
catch (Exception e) catch (Exception e)
{ {
if(Program.I().solo)
MessageManager.messageFromSubString = InterString.Get("端口被占用, 请尝试修改端口后再尝试。端口号应大于0,小于65535。");
else
MessageManager.messageFromSubString = "JoinError: " + e; MessageManager.messageFromSubString = "JoinError: " + e;
} }
canJoin = true; canJoin = true;
......
...@@ -200,7 +200,7 @@ namespace MDPro3 ...@@ -200,7 +200,7 @@ namespace MDPro3
command += " Host=127.0.0.1"; command += " Host=127.0.0.1";
port = inputPort.text; port = inputPort.text;
if (string.IsNullOrEmpty(port) || int.Parse(port.Substring(0, 5)) <= 0 || int.Parse(port.Substring(0, 5)) > 65535) if (string.IsNullOrEmpty(port) || int.Parse(port) <= 0 || int.Parse(port) > 65535)
{ {
port = "7911"; port = "7911";
inputPort.text = port; inputPort.text = port;
......
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