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(); } }
/// <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); }
public void ShowOverlay() { _internalOverlay.ShowOverlay(); }