diff --git a/MainWindow.xaml b/MainWindow.xaml index 95cea92..549a4aa 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -9,7 +9,7 @@ - + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 02490b4..fd57f38 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -25,6 +25,11 @@ namespace formula_manage { InitializeComponent(); } + private void SQL(object sender, RoutedEventArgs e) + { + Windows.Sql sql= new Windows.Sql(); + sql.ShowDialog();//实例化并置顶打开信息窗口 + } private void HELP(object sender, RoutedEventArgs e) { Help help_page = new Help(); diff --git a/Windows/Sql.xaml b/Windows/Sql.xaml new file mode 100644 index 0000000..24ac814 --- /dev/null +++ b/Windows/Sql.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/Windows/Sql.xaml.cs b/Windows/Sql.xaml.cs new file mode 100644 index 0000000..b819b0c --- /dev/null +++ b/Windows/Sql.xaml.cs @@ -0,0 +1,27 @@ +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.Windows +{ + /// + /// Sql.xaml 的交互逻辑 + /// + public partial class Sql : Window + { + public Sql() + { + InitializeComponent(); + } + } +} diff --git a/formula_manage.csproj b/formula_manage.csproj index 2697272..f845c88 100644 --- a/formula_manage.csproj +++ b/formula_manage.csproj @@ -57,6 +57,9 @@ + + Sql.xaml + Stuff.xaml @@ -79,6 +82,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + Designer MSBuild:Compile