This commit is contained in:
sc committed 2023-10-17 23:52:00 +08:00
commit d120e8b178
3 files changed
+16 -6

No files matched your search

+11 -1
View File
@@ -44,14 +44,24 @@ namespace formula_manage
{
if ((Name.Text == "engineer" || Name.Text == "ENGINEER") && (Pasword.Password == "engineer" || Pasword.Password == "ENGINEER"))
{
Window window = Window.GetWindow(this);
MainWindow Main = new MainWindow();
window.Close();
Main.ShowDialog();//实例化并置顶打开信息窗口
this.Close();
}
else
{
System.Windows.MessageBox.Show("账号或密码错误");
}
}
private void SearchBox_OnKeyDownd(object sender, System.Windows.Input.KeyEventArgs e)
{
if (e.Key == Key.Enter)
{
SendKeys.SendWait("{tab}");
}
}
}
}