增加数据库设置页面

This commit is contained in:
sc committed 2023-10-17 19:17:40 +08:00
commit 553d6ac48b
5 files changed
+52 -1

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
<Grid> <Grid>
<Menu> <Menu>
<MenuItem Header="_设置" FontSize="16"> <MenuItem Header="_设置" FontSize="16">
<MenuItem Header="_数据库设置" FontSize="16"/> <MenuItem Header="_数据库设置" FontSize="16" Click="SQL"/>
<MenuItem Header="_备份/还原" FontSize="16"/> <MenuItem Header="_备份/还原" FontSize="16"/>
<Separator/> <Separator/>
<MenuItem Header="_料单设置" FontSize="16"/> <MenuItem Header="_料单设置" FontSize="16"/>
+5
View File
@@ -25,6 +25,11 @@ namespace formula_manage
{ {
InitializeComponent(); InitializeComponent();
} }
private void SQL(object sender, RoutedEventArgs e)
{
Windows.Sql sql= new Windows.Sql();
sql.ShowDialog();//实例化并置顶打开信息窗口
}
private void HELP(object sender, RoutedEventArgs e) private void HELP(object sender, RoutedEventArgs e)
{ {
Help help_page = new Help(); Help help_page = new Help();
+12
View File
@@ -0,0 +1,12 @@
<Window x:Class="formula_manage.Windows.Sql"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:formula_manage.Windows"
mc:Ignorable="d"
Title="Sql" Height="450" Width="800">
<Grid>
</Grid>
</Window>
+27
View File
@@ -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
{
/// <summary>
/// Sql.xaml 的交互逻辑
/// </summary>
public partial class Sql : Window
{
public Sql()
{
InitializeComponent();
}
}
}
+7
View File
@@ -57,6 +57,9 @@
</ApplicationDefinition> </ApplicationDefinition>
<Compile Include="ConvertMoels\ColorSQLConvert.cs" /> <Compile Include="ConvertMoels\ColorSQLConvert.cs" />
<Compile Include="ConvertMoels\ProductTypeSQLConvert.cs" /> <Compile Include="ConvertMoels\ProductTypeSQLConvert.cs" />
<Compile Include="Windows\Sql.xaml.cs">
<DependentUpon>Sql.xaml</DependentUpon>
</Compile>
<Compile Include="Windows\Stuff.xaml.cs"> <Compile Include="Windows\Stuff.xaml.cs">
<DependentUpon>Stuff.xaml</DependentUpon> <DependentUpon>Stuff.xaml</DependentUpon>
</Compile> </Compile>
@@ -79,6 +82,10 @@
<DependentUpon>MainWindow.xaml</DependentUpon> <DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType> <SubType>Code</SubType>
</Compile> </Compile>
<Page Include="Windows\Sql.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Windows\Stuff.xaml"> <Page Include="Windows\Stuff.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>