Browse Source

增加数据库设置页面

master
sc 2 years ago
parent
commit
553d6ac48b
  1. 2
      MainWindow.xaml
  2. 5
      MainWindow.xaml.cs
  3. 12
      Windows/Sql.xaml
  4. 27
      Windows/Sql.xaml.cs
  5. 7
      formula_manage.csproj

2
MainWindow.xaml

@ -9,7 +9,7 @@
<Grid>
<Menu>
<MenuItem Header="_设置" FontSize="16">
<MenuItem Header="_数据库设置" FontSize="16"/>
<MenuItem Header="_数据库设置" FontSize="16" Click="SQL"/>
<MenuItem Header="_备份/还原" FontSize="16"/>
<Separator/>
<MenuItem Header="_料单设置" FontSize="16"/>

5
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();

12
Windows/Sql.xaml

@ -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
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
{
/// <summary>
/// Sql.xaml 的交互逻辑
/// </summary>
public partial class Sql : Window
{
public Sql()
{
InitializeComponent();
}
}
}

7
formula_manage.csproj

@ -57,6 +57,9 @@
</ApplicationDefinition>
<Compile Include="ConvertMoels\ColorSQLConvert.cs" />
<Compile Include="ConvertMoels\ProductTypeSQLConvert.cs" />
<Compile Include="Windows\Sql.xaml.cs">
<DependentUpon>Sql.xaml</DependentUpon>
</Compile>
<Compile Include="Windows\Stuff.xaml.cs">
<DependentUpon>Stuff.xaml</DependentUpon>
</Compile>
@ -79,6 +82,10 @@
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Page Include="Windows\Sql.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Windows\Stuff.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>

Loading…
Cancel
Save