public void CreateAnnounce(PlayerInfo creator, string txt, short repetition, short interval) { Announce a = new Announce(creator, txt, repetition, interval); a.SendAnnounce += AnnounceTick; a.EndAnnounce += AnnounceClosed; Announces.Add(a); SaveAnnounces(); }
private void AnnounceClosed(Announce a) { Announces.Remove(a); SaveAnnounces(); }