示例#1
0
        /// <summary>
        /// Updates the dialog to reflect the current <see cref="MapView.SelectedSite"/>.</summary>
        /// <param name="updateRegion">
        /// <c>true</c> to first recalculate the <see cref="MapView.SelectedRegion"/> to
        /// reflect the combined movement range of all selected units; <c>false</c> to leave the
        /// <b>SelectedRegion</b> unchanged.</param>
        /// <remarks>
        /// <b>ShowSelection</b> updates the arrows shown in the hosted <see cref="MapView"/>.
        /// </remarks>

        private void ShowSelection(bool updateRegion)
        {
            // update selected region if requested
            if (updateRegion)
            {
                this._mapView.SelectedRegion = GetMoveRegion();
            }

            GameUtility.DrawMoveArrows(this._mapView,
                                       this._selected, this._mapView.SelectedSite, true);
        }