Example #1
0
        void ReleaseAll()
        {
            int released = PrisonerUtil.Release(prison, prisoner => true);

            MessageBox.Show(String.Format("All {0} prisoners scheduled for release.", released));
            UpdatePrisoners();
        }
Example #2
0
        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();
        }