diff --git a/App.xaml b/App.xaml
index de5d5cd..de651fd 100644
--- a/App.xaml
+++ b/App.xaml
@@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:formula_manage"
- StartupUri="MainWindow.xaml">
+ StartupUri="Login.xaml">
diff --git a/Help.xaml.cs b/Help.xaml.cs
index 29f319c..6dbf732 100644
--- a/Help.xaml.cs
+++ b/Help.xaml.cs
@@ -21,6 +21,7 @@ namespace formula_manage
{
public Help()
{
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
InitializeComponent();
}
}
diff --git a/Login.xaml b/Login.xaml
new file mode 100644
index 0000000..e240c2b
--- /dev/null
+++ b/Login.xaml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Login.xaml.cs b/Login.xaml.cs
new file mode 100644
index 0000000..4ea1062
--- /dev/null
+++ b/Login.xaml.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace formula_manage
+{
+ ///
+ /// Login.xaml 的交互逻辑
+ ///
+ public partial class Login : Window
+ {
+ public Login()
+ {
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
+ InitializeComponent();
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ this.Close();
+ }
+
+ private void Button_Click_1(object sender, RoutedEventArgs e)
+ {
+
+ }
+ }
+}
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index fd57f38..ce453e6 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -23,6 +23,7 @@ namespace formula_manage
{
public MainWindow()
{
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
InitializeComponent();
}
private void SQL(object sender, RoutedEventArgs e)
diff --git a/Windows/Sql.xaml.cs b/Windows/Sql.xaml.cs
index b819b0c..5ecedc3 100644
--- a/Windows/Sql.xaml.cs
+++ b/Windows/Sql.xaml.cs
@@ -21,6 +21,7 @@ namespace formula_manage.Windows
{
public Sql()
{
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
InitializeComponent();
}
}
diff --git a/Windows/Stuff.xaml.cs b/Windows/Stuff.xaml.cs
index dc6bba1..fa9f7af 100644
--- a/Windows/Stuff.xaml.cs
+++ b/Windows/Stuff.xaml.cs
@@ -21,6 +21,7 @@ namespace formula_manage.Windows
{
public Stuff()
{
+ WindowStartupLocation = WindowStartupLocation.CenterScreen;
InitializeComponent();
}
}
diff --git a/formula_manage.csproj b/formula_manage.csproj
index f845c88..3195cc8 100644
--- a/formula_manage.csproj
+++ b/formula_manage.csproj
@@ -57,6 +57,9 @@
+
+ Login.xaml
+
Sql.xaml
@@ -67,6 +70,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
MSBuild:Compile
Designer