private void findFriend() { if (!checkInput(inputFind.value)) { return; } if (mFindType == 0) { if (!StringKit.isNum(inputFind.value)) { UiManager.Instance.createMessageWindowByOneButton(LanguageConfigManager.Instance.getLanguage("FriendErrorId"), null); callBackByFind2(); return; } string _uid = StringKit.frontIdToServerId(inputFind.value); if (_uid == "error") { UiManager.Instance.createMessageWindowByOneButton(LanguageConfigManager.Instance.getLanguage("FriendErrorId"), null); callBackByFind2(); return; } } FriendsFPort fport = FPortManager.Instance.getFPort("FriendsFPort") as FriendsFPort; fport.findFriend(mFindType, inputFind.value, callBackByFind); }
public void getFindFriend(int _type, string _str) { FriendsFPort fport = FPortManager.Instance.getFPort("FriendsFPort") as FriendsFPort; fport.findFriend(_type, _str, callback1); destoryWindow(); }