* 增加XML文档文件

pull/57/head
Sunny 3 years ago
parent 0ce2695c7c
commit 6509d0b251

Binary file not shown.

@ -6,6 +6,9 @@ MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SunnyUI", "SunnyUI\SunnyUI.csproj", "{AB1CB247-E20B-4CBE-B269-570ADDD96C53}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SunnyUI.Demo", "SunnyUI.Demo\SunnyUI.Demo.csproj", "{6AE19B87-C2AA-4C56-BC26-1C343F30FF58}"
ProjectSection(ProjectDependencies) = postProject
{AB1CB247-E20B-4CBE-B269-570ADDD96C53} = {AB1CB247-E20B-4CBE-B269-570ADDD96C53}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

File diff suppressed because it is too large Load Diff

@ -28,6 +28,9 @@ namespace Sunny.UI
{
public sealed partial class UIMessageForm : UIForm
{
/// <summary>
/// 消息提示窗体
/// </summary>
public UIMessageForm()
{
InitializeComponent();
@ -36,6 +39,9 @@ namespace Sunny.UI
btnCancel.Text = UILocalize.Cancel;
}
/// <summary>
/// 是否OK
/// </summary>
public bool IsOK
{
get; private set;
@ -43,6 +49,9 @@ namespace Sunny.UI
private bool _showCancel = true;
/// <summary>
/// 显示取消按钮
/// </summary>
public bool ShowCancel
{
get => _showCancel;
@ -84,6 +93,9 @@ namespace Sunny.UI
btnCancel.Left = btnOK.Right - 1;
}
/// <summary>
/// 回车事件
/// </summary>
protected override void DoEnter()
{
base.DoEnter();
@ -144,6 +156,13 @@ namespace Sunny.UI
//((UIButton)sender).RadiusSides = UICornerRadiusSides.None;
}
/// <summary>
/// 显示消息提示窗体
/// </summary>
/// <param name="message">消息</param>
/// <param name="title">标题</param>
/// <param name="showCancel">显示取消按钮</param>
/// <param name="style">主题风格</param>
public void ShowMessage(string message, string title, bool showCancel, UIStyle style = UIStyle.Blue)
{
Style = style;

@ -17,7 +17,7 @@
<RepositoryUrl>https://gitee.com/yhuse/SunnyUI</RepositoryUrl>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<PackageIcon>SunnyUI.png</PackageIcon>
<SignAssembly>True</SignAssembly>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>D:\MyDocuments\SunnyUI.pfx</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>

Loading…
Cancel
Save