using System; using KKSG; using XMainClient.UI; using XMainClient.UI.UICommon; using XUtliPoolLib; namespace XMainClient { internal class Process_RpcC2M_RemoveFriendNew { public static void OnReply(RemoveFriendArg oArg, RemoveFriendRes oRes) { bool flag = oRes == null; if (flag) { XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); } else { XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); specificDocument.RemoveFriendRes(oRes.errorcode, oArg.friendroleid); bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; if (flag2) { bool flag3 = DlgBase.singleton.IsVisible() && DlgBase.singleton._MyTeamHandler != null; if (flag3) { DlgBase.singleton._MyTeamHandler.RefreshPage(); } } } } public static void OnTimeout(RemoveFriendArg oArg) { } } }