This commit is contained in:
sc committed 2023-11-13 00:13:42 +08:00
commit e2e5e66ac5
4 files changed
+26 -9

No files matched your search

+5 -3
View File
@@ -62,17 +62,19 @@ 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"))
{
App.USER_Purview = "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) //回车跳转功能