예제 #1
0
파일: GameScreen.cs 프로젝트: erikdab/cram
        /// <summary>
        /// Update Current District Information.
        /// </summary>
        private void UpdateCurrentDistrictInfo()
        {
            var districtName = _selectedDistrict.ToString();

            labelDistrictName.Text        = districtName + " District";
            labelDistrictDescription.Text = _selectedDistrict.Description();
            labelDistrictLevel.Text       = IntegerInRomanLiterals(_selectedDistrict.UpgradeLevel);

            pictureBoxDistrict.Image = (Bitmap)Properties.Resources.ResourceManager.GetObject($"{districtName}Thumbnail{_selectedDistrict.UpgradeLevel}");
        }