diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe
index bf02be3d..5bba3e9d 100644
Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ
diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll
index 8a791ce1..b37c8b16 100644
Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ
diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll
index 966151e4..22f465b1 100644
Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ
diff --git a/Bin/net5.0-windows/ref/SunnyUI.dll b/Bin/net5.0-windows/ref/SunnyUI.dll
index 53825b89..a0ee880f 100644
Binary files a/Bin/net5.0-windows/ref/SunnyUI.dll and b/Bin/net5.0-windows/ref/SunnyUI.dll differ
diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll
index 61c4cf0a..2feb0dcf 100644
Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ
diff --git a/SunnyUI.Demo/Forms/FLogin.cs b/SunnyUI.Demo/Forms/FLogin.cs
index 61a6abf7..df0f37ef 100644
--- a/SunnyUI.Demo/Forms/FLogin.cs
+++ b/SunnyUI.Demo/Forms/FLogin.cs
@@ -9,12 +9,17 @@
private void FLogin_ButtonLoginClick(object sender, System.EventArgs e)
{
- this.ShowInfoTip("DSFSDF");
- // if (UserName == "admin" && Password == "admin")
- // {
- // IsLogin = true;
- // Close();
- // }
+ //UserName就是封装了界面里用户名输入框的值
+ //Password就是封装了界面里密码输入框的值
+ if (UserName == "admin" && Password == "admin")
+ {
+ IsLogin = true;
+ Close();
+ }
+ else
+ {
+ ShowErrorTip("用户名或者密码错误。");
+ }
}
}
}
\ No newline at end of file
diff --git a/SunnyUI.Demo/SunnyUI.Demo.csproj b/SunnyUI.Demo/SunnyUI.Demo.csproj
index 0627fc89..cd495091 100644
--- a/SunnyUI.Demo/SunnyUI.Demo.csproj
+++ b/SunnyUI.Demo/SunnyUI.Demo.csproj
@@ -25,7 +25,7 @@
AnyCPU
pdbonly
- true
+ false
..\Bin\net40\
TRACE
prompt
diff --git a/SunnyUI/SunnyUI.csproj b/SunnyUI/SunnyUI.csproj
index 706fd982..47bf6f49 100644
--- a/SunnyUI/SunnyUI.csproj
+++ b/SunnyUI/SunnyUI.csproj
@@ -30,6 +30,10 @@
true
+
+
+ false
+