private bool MatchingNickName(int index, string nickName) { List <string> res = Account.GetAllNicknames(); foreach (string ac in res) { if (ac == nickName) { return(true); } } return(false); }