This commit is contained in:
sc committed 2023-10-19 21:47:15 +08:00
commit 0c9ec2b963
3 files changed
+51 -43

No files matched your search

+3 -3
View File
@@ -58,17 +58,17 @@ namespace formula_manage
private void Button_Click_1(object sender, RoutedEventArgs e) //登录按钮事件
{
if ((User.Text == "engineer" || User.Text == "ENGINEER") && (Pasword.Password == "engineer" || Pasword.Password == "ENGINEER"))
// if ((User.Text == "engineer" || User.Text == "ENGINEER") && (Pasword.Password == "engineer" || Pasword.Password == "ENGINEER"))
{
Window window = Window.GetWindow(this);
MainWindow Main = new MainWindow();
window.Close();
Main.ShowDialog();//实例化并置顶打开信息窗口
}
else
/* else
{
System.Windows.MessageBox.Show("账号或密码错误");
}
}*/
}
private void SearchBox_OnKeyDownd(object sender, System.Windows.Input.KeyEventArgs e)