namespace Yw.WinFrmUI
{
///
/// 覆盖辅助类
///
public static class OverlayHelper
{
private static OverlayWindowOptions _options = new OverlayWindowOptions(opacity: 100d / 255);
///
///
///
///
///
public static IOverlaySplashScreenHandle ShowOverlay(this Control owner)
{
return SplashScreenManager.ShowOverlayForm(owner, _options);
}
///
///
///
///
///
///
public static IOverlaySplashScreenHandle ShowOverlay(Control owner, OverlayWindowOptions options)
{
return SplashScreenManager.ShowOverlayForm(owner, options);
}
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
public static IOverlaySplashScreenHandle ShowOverlay
(
Control owner,
bool? fadeIn = null,
bool? fadeOut = null,
Color? backColor = null,
Color? foreColor = null,
int? opacity = null,
Image image = null,
IOverlayWindowPainter customPainter = null,
string skinName = null,
ImageRotationParams? rotationParameters = null,
int? startupDelay = null
)
{
return SplashScreenManager.ShowOverlayForm(owner, fadeIn, fadeOut, backColor, foreColor, opacity, image, customPainter, skinName, rotationParameters, startupDelay);
}
}
}