修复注册成功后的一个小问题

This commit is contained in:
Mili 2023-03-11 16:31:23 +08:00
parent 349a35f28a
commit 686c67dc58
2 changed files with 5 additions and 3 deletions

View File

@ -56,6 +56,8 @@ namespace Milimoe.FunGame.Desktop.Model
{
Register.OnSucceedRegEvent(Register.EventArgs);
Register.OnAfterRegEvent(Register.EventArgs);
Register.Close();
return;
}
}
Register.OnFailedRegEvent(Register.EventArgs);
@ -67,7 +69,7 @@ namespace Milimoe.FunGame.Desktop.Model
{
try
{
Core.Library.Common.Network.Socket? Socket = RunTime.Socket;
Socket? Socket = RunTime.Socket;
if (Socket != null && objs != null)
{
string username = "";
@ -91,7 +93,7 @@ namespace Milimoe.FunGame.Desktop.Model
{
try
{
Core.Library.Common.Network.Socket? Socket = RunTime.Socket;
Socket? Socket = RunTime.Socket;
if (Socket != null && objs != null)
{
string username = "";

View File

@ -156,7 +156,7 @@ namespace Milimoe.FunGame.Desktop.UI
{
string username = ((RegisterEventArgs)e).Username;
string password = ((RegisterEventArgs)e).Password;
if (LoginController.LoginAccount(username, password)) Close();
LoginController.LoginAccount(username, password);
return EventResult.Success;
}