------ #### MyDbV4 V3.0.2107.2901 - *.[新增]新增支持计算文件MD5。 - *.[新增]部分DataProvider功能移植到DbExtension里,增加扩展性。 - *.[新增]UnixTimeToDateTime和JSTimeToDateTime新增支持long参数。 - *.[合并]合并RyWeb项目到MyDb里。 #### ryControlsV4 V3.0.2107.2901 - *.[改进]优化减少大量IDE警告和消息。
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Sheng.Winform.Controls.Win32;
|
|
|
|
namespace Sheng.Winform.Controls.Kernal
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static class EnvironmentHelper
|
|
{
|
|
/// <summary>
|
|
/// 是否支持 Windows Vista 以上的玻璃效果
|
|
/// </summary>
|
|
public static bool SupportAreo
|
|
{
|
|
get
|
|
{
|
|
if (Environment.OSVersion.Version.Major < 6)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否打开了玻璃效果
|
|
/// </summary>
|
|
public static bool DwmIsCompositionEnabled
|
|
{
|
|
get
|
|
{
|
|
return DwmApi.DwmIsCompositionEnabled();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取应用程序主窗体
|
|
/// </summary>
|
|
public static System.Windows.Forms.Form MainForm
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|