Exemple #1
0
        public static void InitializeOverlayVisible(
            this IOverlay overlay,
            ref bool overlayVisible,
            bool newValue,
            double opacity = 1.0d)
        {
            overlayVisible = newValue;

            if (overlayVisible)
            {
                overlay.ShowOverlay(opacity);
            }
            else
            {
                overlay.HideOverlay();
            }
        }
Exemple #2
0
        /// <summary>
        /// オーバーレイの表示を切り替える
        /// </summary>
        /// <param name="overlay">overlay</param>
        /// <param name="overlayVisible"></param>
        /// <param name="newValue"></param>
        /// <param name="opacity"></param>
        /// <returns>
        /// 切り替わったか否か?</returns>
        public static bool SetOverlayVisible(
            this IOverlay overlay,
            ref bool overlayVisible,
            bool newValue,
            double opacity = 1.0d)
        {
            if (overlayVisible != newValue)
            {
                overlayVisible = newValue;
                if (overlayVisible)
                {
                    overlay.ShowOverlay(opacity);
                }
                else
                {
                    overlay.HideOverlay();
                }

                return(true);
            }

            return(false);
        }
Exemple #3
0
 public void ShowOverlay()
 {
     _internalOverlay.ShowOverlay();
 }