* 登录窗体增加了两行注释

This commit is contained in:
Sunny 2021-01-19 23:00:28 +08:00
parent edb1e657f7
commit 3e6f3d1938
8 changed files with 16 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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("用户名或者密码错误。");
}
}
}
}

View File

@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<Optimize>false</Optimize>
<OutputPath>..\Bin\net40\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>

View File

@ -30,6 +30,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DocumentationFile></DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net5.0-windows|AnyCPU'">
<Optimize>false</Optimize>
</PropertyGroup>
<ItemGroup>
<None Remove="Font\ElegantIcons.ttf" />