diff --git a/Windows/LogWindow.xaml b/Windows/LogWindow.xaml
index 340d371..ff5b02f 100644
--- a/Windows/LogWindow.xaml
+++ b/Windows/LogWindow.xaml
@@ -11,9 +11,9 @@
+
+
-
-
diff --git a/Windows/LogWindow.xaml.cs b/Windows/LogWindow.xaml.cs
index 6d16a02..9662340 100644
--- a/Windows/LogWindow.xaml.cs
+++ b/Windows/LogWindow.xaml.cs
@@ -31,6 +31,7 @@ namespace Audit.Windows
InitializeComponent();
}
+
private void Exit(object sender, RoutedEventArgs e)//退出按钮
{
Application.Current.Shutdown();//关闭窗口
@@ -54,18 +55,18 @@ namespace Audit.Windows
string users = this.users.Text;
string Passwds = this.Passwds.Text;
- if (users == "sunlight")//内置账号
+ if ((users == "sunlight") || (users == "SUNLIGHT"))//内置账号
{
- if (Passwds == "sql")//数据库设置页面判断
+ if ((Passwds == "sql") || (Passwds == "SQL"))//数据库设置页面判断
{
- MessageBox.Show("警告:进入数据库设置模式请您明确操作目的及可能需承担的后果");
+ MessageBox.Show("警告:进入数据库设置请您明确操作目的及可能需承担的后果");
Windows.Set_up_Sql setup = new Windows.Set_up_Sql();
setup.Show();//实例化并打开设置窗口
this.Close();//关闭当前窗口
}
else
{
- if (Passwds == "sunlight")//主页面判断
+ if ((Passwds == "sunlight") || (users == "SUNLIGHT"))//主页面判断
{
MessageBox.Show("SC:开启主页面");
MainWindow mainWindow = new MainWindow();