void ReleaseAll() { int released = PrisonerUtil.Release(prison, prisoner => true); MessageBox.Show(String.Format("All {0} prisoners scheduled for release.", released)); UpdatePrisoners(); }
void Release(string categoryName) { string groupLabel = PrisonerUtil.InternalToInGameCatName(categoryName); int released = PrisonerUtil.Release(prison, prisoner => prisoner.Category == categoryName); MessageBox.Show(String.Format("{0} {1} prisoners scheduled for release.", released, groupLabel)); UpdatePrisoners(); }