方法名修改

This commit is contained in:
milimoe 2025-11-17 23:06:15 +08:00
parent 293b977c68
commit 61767e02ed
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
2 changed files with 5 additions and 5 deletions

View File

@ -387,7 +387,7 @@ namespace Milimoe.FunGame.Desktop.UI
{ {
try try
{ {
if (INIHelper.ExistINIFile()) if (INIHelper.INIFileExists())
{ {
string isAutoConnect = INIHelper.ReadINI("Config", "AutoConnect"); string isAutoConnect = INIHelper.ReadINI("Config", "AutoConnect");
string isAutoLogin = INIHelper.ReadINI("Config", "AutoLogin"); string isAutoLogin = INIHelper.ReadINI("Config", "AutoLogin");
@ -797,7 +797,7 @@ namespace Milimoe.FunGame.Desktop.UI
{ {
GetMessage("匹配成功 -> 房间号: " + room.Roomid); GetMessage("匹配成功 -> 房间号: " + room.Roomid);
if (MainController != null) await MainController.UpdateRoomAsync(); if (MainController != null) await MainController.UpdateRoomAsync();
if (Rooms.IsExist(room.Roomid)) if (Rooms.Exists(room.Roomid))
{ {
Room target = Rooms[room.Roomid]; Room target = Rooms[room.Roomid];
await InvokeController_IntoRoom(target); await InvokeController_IntoRoom(target);
@ -1624,7 +1624,7 @@ namespace Milimoe.FunGame.Desktop.UI
/// </summary> /// </summary>
/// <param name="roomid"></param> /// <param name="roomid"></param>
/// <returns></returns> /// <returns></returns>
private bool CheckRoomIDExist(string roomid) => Rooms.IsExist(roomid); private bool CheckRoomIDExist(string roomid) => Rooms.Exists(roomid);
/// <summary> /// <summary>
/// 获取房间对象 /// 获取房间对象

View File

@ -67,7 +67,7 @@ namespace Milimoe.FunGame.Desktop.Utility
default: default:
break; break;
} }
if (Singleton.IsExist(form) || IsExist) if (Singleton.Exists(form) || IsExist)
{ {
throw new FormHasBeenOpenedException(); throw new FormHasBeenOpenedException();
} }
@ -86,7 +86,7 @@ namespace Milimoe.FunGame.Desktop.Utility
{ {
try try
{ {
if (!Singleton.IsExist(form)) if (!Singleton.Exists(form))
{ {
Singleton.AddOrUpdate(form); Singleton.AddOrUpdate(form);
if (opentype == OpenFormType.Dialog) form.ShowDialog(); if (opentype == OpenFormType.Dialog) form.ShowDialog();