Browse Source

添加项目文件。

CaptB 4 months ago
parent
commit
22f73ffa82
12 changed files with 319 additions and 0 deletions
  1. 21 0
      App.config
  2. 9 0
      App.xaml
  3. 14 0
      App.xaml.cs
  4. 41 0
      ArchivesCenter3.csproj
  5. 22 0
      ArchivesCenter3.sln
  6. 10 0
      AssemblyInfo.cs
  7. 101 0
      MainWindow.xaml
  8. 24 0
      MainWindow.xaml.cs
  9. BIN
      Res/icons8_omnichannel_48.png
  10. 62 0
      Settings1.Designer.cs
  11. 15 0
      Settings1.settings
  12. BIN
      SplashScreen1.png

+ 21 - 0
App.config

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <configSections>
+        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
+            <section name="ArchivesCenter3.Settings1" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
+        </sectionGroup>
+    </configSections>
+    <userSettings>
+        <ArchivesCenter3.Settings1>
+            <setting name="dbName0" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="dbName1" serializeAs="String">
+                <value />
+            </setting>
+            <setting name="maxim" serializeAs="String">
+                <value />
+            </setting>
+        </ArchivesCenter3.Settings1>
+    </userSettings>
+</configuration>

+ 9 - 0
App.xaml

@@ -0,0 +1,9 @@
+<Application x:Class="ArchivesCenter3.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:ArchivesCenter3"
+             StartupUri="MainWindow.xaml">
+    <Application.Resources>
+         
+    </Application.Resources>
+</Application>

+ 14 - 0
App.xaml.cs

@@ -0,0 +1,14 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace ArchivesCenter3
+{
+    /// <summary>
+    /// Interaction logic for App.xaml
+    /// </summary>
+    public partial class App : Application
+    {
+    }
+
+}

+ 41 - 0
ArchivesCenter3.csproj

@@ -0,0 +1,41 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>WinExe</OutputType>
+    <TargetFramework>net8.0-windows</TargetFramework>
+    <Nullable>enable</Nullable>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <UseWPF>true</UseWPF>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <None Remove="Res\icons8_omnichannel_48.png" />
+    <None Remove="SplashScreen1.png" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <Resource Include="Res\icons8_omnichannel_48.png">
+      <CopyToOutputDirectory>Never</CopyToOutputDirectory>
+    </Resource>
+  </ItemGroup>
+
+  <ItemGroup>
+    <SplashScreen Include="SplashScreen1.png" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <Compile Update="Settings1.Designer.cs">
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings1.settings</DependentUpon>
+    </Compile>
+  </ItemGroup>
+
+  <ItemGroup>
+    <None Update="Settings1.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings1.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+
+</Project>

+ 22 - 0
ArchivesCenter3.sln

@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.12.35527.113 d17.12
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchivesCenter3", "ArchivesCenter3.csproj", "{C77B3E85-A99B-425F-87FB-F03E361EDC8D}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{C77B3E85-A99B-425F-87FB-F03E361EDC8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{C77B3E85-A99B-425F-87FB-F03E361EDC8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{C77B3E85-A99B-425F-87FB-F03E361EDC8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{C77B3E85-A99B-425F-87FB-F03E361EDC8D}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

+ 10 - 0
AssemblyInfo.cs

@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+    ResourceDictionaryLocation.None,            //where theme specific resource dictionaries are located
+                                                //(used if a resource is not found in the page,
+                                                // or application resource dictionaries)
+    ResourceDictionaryLocation.SourceAssembly   //where the generic resource dictionary is located
+                                                //(used if a resource is not found in the page,
+                                                // app, or any theme specific resource dictionaries)
+)]

+ 101 - 0
MainWindow.xaml

@@ -0,0 +1,101 @@
+<Window x:Class="ArchivesCenter3.MainWindow"
+        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:ArchivesCenter3"
+        mc:Ignorable="d"
+        Title="MainWindow" Height="450" Width="800">
+    <Grid>
+        <TabControl Background="#0368ba">
+            <TabItem Header="开始">
+                <Grid>
+                    <TabControl>
+                        <TabItem Header="欢迎">
+                            <Grid VerticalAlignment="Top">
+                                <Grid.ColumnDefinitions>
+                                    <ColumnDefinition Width="Auto" />
+                                    <ColumnDefinition Width="Auto" />
+                                </Grid.ColumnDefinitions>
+                                <Grid.RowDefinitions>
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="20" />
+                                    <RowDefinition Height="Auto" />
+                                </Grid.RowDefinitions>
+                                <Image Grid.Column="0" Grid.Row="0" Source="/Res/icons8_omnichannel_48.png" Stretch="None" Margin="3"/>
+                                <TextBlock Grid.Column="1" Grid.Row="0" Text="欢迎!" Margin="10" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="24" Foreground="#0368ba"/>
+                                <Border Grid.ColumnSpan="3" Grid.Row="1" Background="#0368ba" Height="3"/>
+                                <TextBlock x:Name="maxim" Grid.Column="1" Grid.Row="2" Text="maxim" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="36" Foreground="#0368ba"/>
+                                <TextBlock x:Name="dbName0" Grid.Column="1" Grid.Row="3" Text="dbName0" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="18" Foreground="#000000"/>
+                                <TextBlock x:Name="dbName1" Grid.Column="1" Grid.Row="4" Text="dbName1" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="18" Foreground="#989898"/>
+                                <TextBlock Grid.Column="1" Grid.Row="6" Text="此数据库中所收集之信息皆应由合法渠道取得。注意保密!" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="18" Foreground="#000000"/>
+                            </Grid>
+                        </TabItem>
+                        <TabItem Header="备份">
+                            <Grid>
+
+                            </Grid>
+                        </TabItem>
+                        <TabItem Header="设置">
+                            <Grid>
+                                <Grid.ColumnDefinitions>
+                                    <ColumnDefinition Width="Auto" />
+                                    <ColumnDefinition Width="Auto" />
+                                    <ColumnDefinition Width="Auto" />
+                                </Grid.ColumnDefinitions>
+                                <Grid.RowDefinitions>
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                    <RowDefinition Height="Auto" />
+                                </Grid.RowDefinitions>
+                                <TextBlock Grid.Column="2" Grid.Row="0" Text="当前值" Margin="10"/>
+                                
+                                <TextBlock Grid.Column="0" Grid.Row="1" Text="数据库名称" Margin="10"/>
+                                <TextBox x:Name="dbNameBox0" Grid.Column="1" Grid.Row="1" Height="18" Width="150"/>
+                                <TextBlock x:Name="dbCuName0" Grid.Column="2" Grid.Row="1" Text="dbCuName0" Margin="10"/>
+                                
+                                <TextBlock Grid.Column="0" Grid.Row="2" Text="数据库副标题" Margin="10"/>
+                                <TextBox x:Name="dbNameBox1" Grid.Column="1" Grid.Row="2" Height="18" Width="150"/>
+                                <TextBlock x:Name="dbCuName1" Grid.Column="2" Grid.Row="2" Text="dbCuName1" Margin="10"/>
+
+                                <TextBlock Grid.Column="0" Grid.Row="3" Text="欢迎标题" Margin="10"/>
+                                <TextBox x:Name="cuMaximBox" Grid.Column="1" Grid.Row="3" Height="18" Width="150"/>
+                                <TextBlock x:Name="cuMaxim" Grid.Column="2" Grid.Row="3" Text="cuMaxim" Margin="10"/>
+
+                                <TextBlock Grid.Column="0" Grid.Row="4" Text="数据库密码" Margin="10"/>
+                                <TextBox x:Name="pswdBox" Grid.Column="1" Grid.Row="4" Height="18" Width="150"/>
+                                <TextBlock x:Name="cuPswd" Grid.Column="2" Grid.Row="4" Text="cuPswd" Margin="10"/>
+                            </Grid>
+                        </TabItem>
+                        <TabItem Header="关于">
+                            <Grid>
+
+                            </Grid>
+                        </TabItem>
+                    </TabControl>
+                </Grid>
+            </TabItem>
+            <TabItem Header="综合查询">
+                <Grid>
+
+                </Grid>
+            </TabItem>
+            <TabItem Header="关系人">
+                <Grid>
+
+                </Grid>
+            </TabItem>
+            <TabItem Header="日志">
+                <Grid>
+
+                </Grid>
+            </TabItem>
+        </TabControl>
+    </Grid>
+</Window>

+ 24 - 0
MainWindow.xaml.cs

@@ -0,0 +1,24 @@
+using System.Text;
+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.Navigation;
+using System.Windows.Shapes;
+
+namespace ArchivesCenter3
+{
+    /// <summary>
+    /// Interaction logic for MainWindow.xaml
+    /// </summary>
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

BIN
Res/icons8_omnichannel_48.png


+ 62 - 0
Settings1.Designer.cs

@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.42000
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace ArchivesCenter3 {
+    
+    
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
+    internal sealed partial class Settings1 : global::System.Configuration.ApplicationSettingsBase {
+        
+        private static Settings1 defaultInstance = ((Settings1)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings1())));
+        
+        public static Settings1 Default {
+            get {
+                return defaultInstance;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string dbName0 {
+            get {
+                return ((string)(this["dbName0"]));
+            }
+            set {
+                this["dbName0"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string dbName1 {
+            get {
+                return ((string)(this["dbName1"]));
+            }
+            set {
+                this["dbName1"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("")]
+        public string maxim {
+            get {
+                return ((string)(this["maxim"]));
+            }
+            set {
+                this["maxim"] = value;
+            }
+        }
+    }
+}

+ 15 - 0
Settings1.settings

@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ArchivesCenter3" GeneratedClassName="Settings1">
+  <Profiles />
+  <Settings>
+    <Setting Name="dbName0" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="dbName1" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+    <Setting Name="maxim" Type="System.String" Scope="User">
+      <Value Profile="(Default)" />
+    </Setting>
+  </Settings>
+</SettingsFile>

BIN
SplashScreen1.png