public bool Check() { string name = txtHomeId.Text.Trim(); if (IsNpc && _npcName == name) { return(true); } else { IsNpc = false; var id = LocalHelper.GetManagerId(name); if (id == Guid.Empty) { MessageBox.Show(string.Format("账号[{0}]不存在,请检查!", name)); return(false); } ManagerId = id; return(true); } }