public bool TryGetForum(int Id, out GroupForum Forum) { if ((Forum = Forums.FirstOrDefault(c => c.Id == Id)) != null) { return(true); } Group Gp; if (!RavenEnvironment.GetGame().GetGroupManager().TryGetGroup(Id, out Gp)) { return(false); } if (!Gp.HasForum) { return(false); } Forum = new GroupForum(Gp); Forums.Add(Forum); return(true); }
public GroupForum GetForum(int GroupId) { GroupForum f = null; return(TryGetForum(GroupId, out f) ? f : null); }