sc 4 years ago
parent
commit
18855117a9
  1. 6
      Audit.csproj
  2. 6
      Windows/LogWindow.xaml.cs
  3. 2
      Windows/Set_up_Sql.xaml
  4. 4
      Windows/Set_up_Sql.xaml.cs

6
Audit.csproj

@ -156,8 +156,8 @@
<Compile Include="Windows\LogWindow.xaml.cs"> <Compile Include="Windows\LogWindow.xaml.cs">
<DependentUpon>LogWindow.xaml</DependentUpon> <DependentUpon>LogWindow.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Windows\Set_up.xaml.cs"> <Compile Include="Windows\Set_up_Sql.xaml.cs">
<DependentUpon>Set_up.xaml</DependentUpon> <DependentUpon>Set_up_Sql.xaml</DependentUpon>
</Compile> </Compile>
<Page Include="MainWindow.xaml"> <Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
@ -191,7 +191,7 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>
<Page Include="Windows\Set_up.xaml"> <Page Include="Windows\Set_up_Sql.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
</Page> </Page>

6
Windows/LogWindow.xaml.cs

@ -55,10 +55,10 @@ namespace Audit.Windows
string Passwds = this.Passwds.Text; string Passwds = this.Passwds.Text;
if (users == "sunlight")//内置账号 if (users == "sunlight")//内置账号
{ {
if (Passwds == "setup")//设置页面判断 if (Passwds == "sql")//数据库设置页面判断
{ {
MessageBox.Show("警告:进入设置模式请您明确操作目的及可能需承担的后果"); MessageBox.Show("警告:进入数据库设置模式请您明确操作目的及可能需承担的后果");
Windows.Set_up setup = new Windows.Set_up(); Windows.Set_up_Sql setup = new Windows.Set_up_Sql();
setup.Show();//实例化并打开设置窗口 setup.Show();//实例化并打开设置窗口
this.Close();//关闭当前窗口 this.Close();//关闭当前窗口
} }

2
Windows/Set_up.xaml → Windows/Set_up_Sql.xaml

@ -1,4 +1,4 @@
<mah:MetroWindow xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" x:Class="Audit.Windows.Set_up" <mah:MetroWindow xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" x:Class="Audit.Windows.Set_up_Sql"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

4
Windows/Set_up.xaml.cs → Windows/Set_up_Sql.xaml.cs

@ -18,12 +18,12 @@ namespace Audit.Windows
/// <summary> /// <summary>
/// Set_up.xaml 的交互逻辑 /// Set_up.xaml 的交互逻辑
/// </summary> /// </summary>
public partial class Set_up : MetroWindow public partial class Set_up_Sql : MetroWindow
{ {
///<Summary> ///<Summary>
/// Set_up /// Set_up
///</Summary> ///</Summary>
public Set_up() public Set_up_Sql()
{ {
InitializeComponent(); InitializeComponent();
} }
Loading…
Cancel
Save