110,535
社区成员
发帖
与我相关
我的任务
分享
try
{
UsrStruct.Username = userNameT.Text;
UsrStruct.Password = passwordT.Text;
DataSet ds = null;
ds = baseFunction.Login(UsrStruct);
if (ds.Tables[0].Rows.Count > 0) //找到对应的用户名和密码
{
this.Hide();
// if (this.Visible == false) // 加上这句也不行
// {
MainWindow mw = new MainWindow();
mw.Show(); //显示主界面
// }
}
catch
{
}