UIMessageForm:解决了Demo消息窗口弹出,界面刷新闪烁的Bug

This commit is contained in:
Sunny 2020-06-21 20:44:38 +08:00
parent 0a16c07770
commit f92dc87e61
11 changed files with 10 additions and 14 deletions

Binary file not shown.

Binary file not shown.

View File

@ -11,6 +11,8 @@
#### 介绍
- SunnyUI.Net, 基于 C# .Net WinForm 开源控件库、工具类库、扩展类库、多页面开发框架
- 源码编译环境VS2019
- 动态库应用环境VS2010.Net Framework 4.0及以上
#### 软件框架
![思维导图](https://images.gitee.com/uploads/images/2020/0518/223455_88a12732_416720.png "中心主题.png")

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
using System;
using Sunny.UI.Demo.Forms;
using System;
using System.Collections.Generic;
using Sunny.UI.Demo.Forms;
namespace Sunny.UI.Demo
{
@ -15,11 +15,11 @@ namespace Sunny.UI.Demo
{
if (this.ShowAskDialog("确认信息提示框"))
{
this.ShowInfoDialog("您点击了确定按钮");
UIMessageTip.ShowOk("您点击了确定按钮");
}
else
{
this.ShowErrorDialog("您点击了取消按钮");
UIMessageTip.ShowError("您点击了取消按钮");
}
}

View File

@ -41,7 +41,7 @@
//
this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(208)))), ((int)(((byte)(250)))));
this.pictureBox1.Image = global::Sunny.UI.Demo.Properties.Resources.SunnyLogin;
this.pictureBox1.Location = new System.Drawing.Point(183, 212);
this.pictureBox1.Location = new System.Drawing.Point(180, 208);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(71, 71);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;

View File

@ -379,12 +379,8 @@ namespace Sunny.UI
frm.Style = style;
frm.SetItems(items);
frm.SelectedIndex = selectIndex;
if (title.IsValid())
{
frm.Title = title;
}
frm.Description = description;
if (title.IsValid()) frm.Title = title;
if (description.IsValid()) frm.Description = description;
frm.ShowDialog();
bool result = frm.IsOK;

View File

@ -97,7 +97,6 @@
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Text = "UIMsgBox";
this.TopMost = true;
this.ResumeLayout(false);
}

View File

@ -120,8 +120,6 @@ namespace Sunny.UI
lbMsg.BackColor = BackColor;
lbMsg.SelectionColor = RectColor;
}
Invalidate();
}
private void btnOK_MouseEnter(object sender, EventArgs e)

View File

@ -2,6 +2,7 @@
2020.06.21
+ UILoginForm登录窗体增加两张图片
* UIMessageForm解决了Demo消息窗口弹出界面刷新闪烁的Bug
2020.06.20
+ UILoginForm增加登录窗体