diff --git a/Login.xaml.cs b/Login.xaml.cs index dca71c0..3ab01ce 100644 --- a/Login.xaml.cs +++ b/Login.xaml.cs @@ -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) diff --git a/Windows/Sql.xaml b/Windows/Sql.xaml index 404661d..1505b8e 100644 --- a/Windows/Sql.xaml +++ b/Windows/Sql.xaml @@ -5,26 +5,26 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:formula_manage.Windows" mc:Ignorable="d" Title="Sql" Loaded="Window_SQL" - Height="450" Width="248" MaxHeight="450" MaxWidth="248" ResizeMode="NoResize"> + Height="450" Width="280" MaxHeight="450" MaxWidth="280" ResizeMode="NoResize"> - - + + - - - - - - - - - + + + + + + + + + -