diff --git a/Login.xaml b/Login.xaml
index f0dd8a2..4dfbd47 100644
--- a/Login.xaml
+++ b/Login.xaml
@@ -13,8 +13,8 @@
-
-
+
+
diff --git a/Login.xaml.cs b/Login.xaml.cs
index 3bd62c7..52fec0b 100644
--- a/Login.xaml.cs
+++ b/Login.xaml.cs
@@ -42,7 +42,7 @@ namespace formula_manage
private void Button_Click_1(object sender, RoutedEventArgs e) //登录按钮事件
{
- if ((Name.Text == "engineer" || Name.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();