Browse Source

完善了设置

CaptB 4 months ago
parent
commit
d5913018b3

+ 12 - 6
App.config

@@ -7,14 +7,20 @@
     </configSections>
     <userSettings>
         <ArchivesCenter3.Settings1>
-            <setting name="dbName0" serializeAs="String">
-                <value />
+            <setting name="DatabaseName" serializeAs="String">
+                <value>DatabaseName</value>
             </setting>
-            <setting name="dbName1" serializeAs="String">
-                <value />
+            <setting name="DatabaseSubtitle" serializeAs="String">
+                <value>DatabaseSubtitle</value>
             </setting>
-            <setting name="maxim" serializeAs="String">
-                <value />
+            <setting name="WelcomeTitle" serializeAs="String">
+                <value>WelcomeTitle</value>
+            </setting>
+            <setting name="Password" serializeAs="String">
+                <value>Password</value>
+            </setting>
+            <setting name="Username" serializeAs="String">
+                <value>Username</value>
             </setting>
         </ArchivesCenter3.Settings1>
     </userSettings>

+ 16 - 4
ArchivesCenter3.csproj

@@ -9,14 +9,14 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <None Remove="Res\icons8_omnichannel_48.png" />
+    <None Remove="Resources\icons8_omnichannel_128.png" />
+    <None Remove="Resources\icons8_omnichannel_48.png" />
     <None Remove="SplashScreen1.png" />
   </ItemGroup>
 
   <ItemGroup>
-    <Resource Include="Res\icons8_omnichannel_48.png">
-      <CopyToOutputDirectory>Never</CopyToOutputDirectory>
-    </Resource>
+    <EmbeddedResource Include="Resources\icons8_omnichannel_128.png" />
+    <Resource Include="Resources\icons8_omnichannel_48.png" />
   </ItemGroup>
 
   <ItemGroup>
@@ -24,6 +24,11 @@
   </ItemGroup>
 
   <ItemGroup>
+    <Compile Update="Resource1.Designer.cs">
+      <DesignTime>True</DesignTime>
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resource1.resx</DependentUpon>
+    </Compile>
     <Compile Update="Settings1.Designer.cs">
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
       <AutoGen>True</AutoGen>
@@ -31,6 +36,13 @@
     </Compile>
   </ItemGroup>
 
+  <ItemGroup>
+    <EmbeddedResource Update="Resource1.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resource1.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+  </ItemGroup>
+
   <ItemGroup>
     <None Update="Settings1.settings">
       <Generator>SettingsSingleFileGenerator</Generator>

+ 69 - 23
MainWindow.xaml

@@ -14,7 +14,7 @@
                         <TabItem Header="欢迎">
                             <Grid VerticalAlignment="Top">
                                 <Grid.ColumnDefinitions>
-                                    <ColumnDefinition Width="Auto" />
+                                    <ColumnDefinition Width="50" />
                                     <ColumnDefinition Width="Auto" />
                                 </Grid.ColumnDefinitions>
                                 <Grid.RowDefinitions>
@@ -26,12 +26,22 @@
                                     <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"/>
+                                <Grid Grid.ColumnSpan="2" Grid.Row="0">
+                                    <Grid.ColumnDefinitions>
+                                        <ColumnDefinition Width="Auto" />
+                                        <ColumnDefinition Width="Auto" />
+                                    </Grid.ColumnDefinitions>
+                                    <Grid.RowDefinitions>
+                                        <RowDefinition Height="Auto" />
+                                        <RowDefinition Height="Auto" />
+                                    </Grid.RowDefinitions>
+                                    <Image Grid.Column="0" Grid.Row="0" Source="/Resources/icons8_omnichannel_48.png" Margin="3"/>
+                                    <TextBlock x:Name="welcomeText" Grid.Column="1" Grid.Row="0" Text="欢迎!" Margin="10" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="24" Foreground="#0368ba"/>
+                                    <Border Grid.ColumnSpan="2" Grid.Row="1" Background="#0368ba" Height="3"/>
+                                </Grid>
+                                <TextBlock x:Name="WelcomeTitle" Grid.Column="1" Grid.Row="2" Text="maxim" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="36" Foreground="#0368ba"/>
+                                <TextBlock x:Name="DatabaseName" Grid.Column="1" Grid.Row="3" Text="dbName0" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="18" Foreground="#000000"/>
+                                <TextBlock x:Name="DatabaseSubtitle" 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>
@@ -53,29 +63,65 @@
                                     <RowDefinition Height="Auto" />
                                     <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"/>
+                                <Grid Grid.ColumnSpan="3" Grid.Row="0">
+                                    <Grid.ColumnDefinitions>
+                                        <ColumnDefinition Width="Auto" />
+                                        <ColumnDefinition Width="Auto" />
+                                    </Grid.ColumnDefinitions>
+                                    <Grid.RowDefinitions>
+                                        <RowDefinition Height="Auto" />
+                                        <RowDefinition Height="Auto" />
+                                    </Grid.RowDefinitions>
+                                    <Image Grid.Column="0" Grid.Row="0" Source="/Resources/icons8_omnichannel_48.png" 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"/>
+                                </Grid>
+                                <Button x:Name="settingSaveButton0" Grid.Column="0" Grid.Row="1" Content="保存" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50" Height="20" Click="Button_Click" IsEnabled="False"/>
+                                <TextBlock Grid.Column="1" Grid.Row="1" Text="提示:若无更改则留空" Margin="0,10,10,10" Foreground="Gray"/>
+                                <TextBlock Grid.Column="2" Grid.Row="1" Text="当前值" Margin="10"/>
+
+                                <TextBlock Grid.Column="0" Grid.Row="2" Text="数据库名称" Margin="10"/>
+                                <TextBox x:Name="DatabaseNameBox" Grid.Column="1" Grid.Row="2" Height="18" Width="150" TextChanged="TextChanged"/>
+                                <TextBlock x:Name="DatabaseNameCu" Grid.Column="2" Grid.Row="2" Text="DatabaseName" Margin="10"/>
+
+                                <TextBlock Grid.Column="0" Grid.Row="3" Text="数据库副标题" Margin="10"/>
+                                <TextBox x:Name="DatabaseSubtitleBox" Grid.Column="1" Grid.Row="3" Height="18" Width="150" TextChanged="TextChanged"/>
+                                <TextBlock x:Name="DatabaseSubtitleCu" Grid.Column="2" Grid.Row="3" Text="DatabaseSubtitle" 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="WelcomeTitleBox" Grid.Column="1" Grid.Row="4" Height="18" Width="150" TextChanged="TextChanged"/>
+                                <TextBlock x:Name="WelcomeTitleCu" Grid.Column="2" Grid.Row="4" Text="WelcomeTitle" 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"/>
+                                <TextBlock Grid.Column="0" Grid.Row="5" Text="用户名" Margin="10"/>
+                                <TextBox x:Name="UsernameBox" Grid.Column="1" Grid.Row="5" Height="18" Width="150" TextChanged="TextChanged"/>
+                                <TextBlock x:Name="UsernameCu" Grid.Column="2" Grid.Row="5" Text="Username" Margin="10"/>
+
+                                <TextBlock Grid.Column="0" Grid.Row="6" Text="数据库密码" Margin="10" Foreground="Red"/>
+                                <TextBox x:Name="PasswordBox" Grid.Column="1" Grid.Row="6" Height="18" Width="150" Foreground="Red" TextChanged="TextChanged"/>
+                                <TextBlock x:Name="PasswordCu" Grid.Column="2" Grid.Row="6" Text="Password" Margin="10" Foreground="Red"/>
+
+                                <Button x:Name="settingSaveButton1" Grid.Column="0" Grid.Row="100" Content="保存" HorizontalAlignment="Center" VerticalAlignment="Center" Width="50" Height="20" Click="Button_Click" IsEnabled="False"/>
                             </Grid>
                         </TabItem>
                         <TabItem Header="关于">
                             <Grid>
-
+                                <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="Auto" />
+                                </Grid.RowDefinitions>
+                                <Image Grid.Column="0" Grid.Row="0" Source="/Resources/icons8_omnichannel_128.png" Margin="3"/>
                             </Grid>
                         </TabItem>
                     </TabControl>

+ 45 - 0
MainWindow.xaml.cs

@@ -19,6 +19,51 @@ namespace ArchivesCenter3
         public MainWindow()
         {
             InitializeComponent();
+            updateinfo();
+        }
+
+        private void updateinfo()
+        {
+            welcomeText.Text = "欢迎!" + Settings1.Default.Username;
+            WelcomeTitle.Text = Settings1.Default.WelcomeTitle;
+            DatabaseName.Text = Settings1.Default.DatabaseName;
+            DatabaseSubtitle.Text = Settings1.Default.DatabaseSubtitle;
+            UsernameCu.Text = Settings1.Default.Username;
+            WelcomeTitleCu.Text = Settings1.Default.WelcomeTitle;
+            DatabaseNameCu.Text = Settings1.Default.DatabaseName;
+            DatabaseSubtitleCu.Text = Settings1.Default.DatabaseSubtitle;
+            PasswordCu.Text = Settings1.Default.Password;
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            if (!string.IsNullOrEmpty(DatabaseNameBox.Text))
+                Settings1.Default.DatabaseName = DatabaseNameBox.Text;
+
+            if (!string.IsNullOrEmpty(DatabaseSubtitleBox.Text))
+                Settings1.Default.DatabaseSubtitle = DatabaseSubtitleBox.Text;
+
+            if (!string.IsNullOrEmpty(WelcomeTitleBox.Text))
+                Settings1.Default.WelcomeTitle = WelcomeTitleBox.Text;
+
+            if (!string.IsNullOrEmpty(UsernameBox.Text))
+                Settings1.Default.Username = UsernameBox.Text;
+
+            if (!string.IsNullOrEmpty(PasswordBox.Text))
+                Settings1.Default.Password = PasswordBox.Text;
+            Settings1.Default.Save();
+            updateinfo();
+        }
+
+        private void TextChanged(object sender, TextChangedEventArgs e)
+        {
+            bool allTextBoxesEmpty = string.IsNullOrWhiteSpace(DatabaseNameBox.Text) &&
+                             string.IsNullOrWhiteSpace(DatabaseSubtitleBox.Text) &&
+                             string.IsNullOrWhiteSpace(WelcomeTitleBox.Text) &&
+                             string.IsNullOrWhiteSpace(UsernameBox.Text) &&
+                             string.IsNullOrWhiteSpace(PasswordBox.Text);
+            settingSaveButton0.IsEnabled = !allTextBoxesEmpty;
+            settingSaveButton1.IsEnabled = !allTextBoxesEmpty;
         }
     }
 }

+ 83 - 0
Resource1.Designer.cs

@@ -0,0 +1,83 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.42000
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace ArchivesCenter3 {
+    using System;
+    
+    
+    /// <summary>
+    ///   一个强类型的资源类,用于查找本地化的字符串等。
+    /// </summary>
+    // 此类是由 StronglyTypedResourceBuilder
+    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+    // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+    // (以 /str 作为命令选项),或重新生成 VS 项目。
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resource1 {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resource1() {
+        }
+        
+        /// <summary>
+        ///   返回此类使用的缓存的 ResourceManager 实例。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ArchivesCenter3.Resource1", typeof(Resource1).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   重写当前线程的 CurrentUICulture 属性,对
+        ///   使用此强类型资源类的所有资源查找执行重写。
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Byte[] 类型的本地化资源。
+        /// </summary>
+        internal static byte[] icons8_omnichannel_128 {
+            get {
+                object obj = ResourceManager.GetObject("icons8_omnichannel_128", resourceCulture);
+                return ((byte[])(obj));
+            }
+        }
+        
+        /// <summary>
+        ///   查找 System.Byte[] 类型的本地化资源。
+        /// </summary>
+        internal static byte[] icons8_omnichannel_48 {
+            get {
+                object obj = ResourceManager.GetObject("icons8_omnichannel_48", resourceCulture);
+                return ((byte[])(obj));
+            }
+        }
+    }
+}

+ 127 - 0
Resource1.resx

@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="icons8_omnichannel_128" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>Resources\icons8_omnichannel_128.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </data>
+  <data name="icons8_omnichannel_48" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>Resources\icons8_omnichannel_48.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </data>
+</root>

BIN
Resources/icons8_omnichannel_128.png


+ 0 - 0
Res/icons8_omnichannel_48.png → Resources/icons8_omnichannel_48.png


+ 36 - 12
Settings1.Designer.cs

@@ -25,37 +25,61 @@ namespace ArchivesCenter3 {
         
         [global::System.Configuration.UserScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-        [global::System.Configuration.DefaultSettingValueAttribute("")]
-        public string dbName0 {
+        [global::System.Configuration.DefaultSettingValueAttribute("DatabaseName")]
+        public string DatabaseName {
             get {
-                return ((string)(this["dbName0"]));
+                return ((string)(this["DatabaseName"]));
             }
             set {
-                this["dbName0"] = value;
+                this["DatabaseName"] = value;
             }
         }
         
         [global::System.Configuration.UserScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-        [global::System.Configuration.DefaultSettingValueAttribute("")]
-        public string dbName1 {
+        [global::System.Configuration.DefaultSettingValueAttribute("DatabaseSubtitle")]
+        public string DatabaseSubtitle {
             get {
-                return ((string)(this["dbName1"]));
+                return ((string)(this["DatabaseSubtitle"]));
             }
             set {
-                this["dbName1"] = value;
+                this["DatabaseSubtitle"] = value;
             }
         }
         
         [global::System.Configuration.UserScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
-        [global::System.Configuration.DefaultSettingValueAttribute("")]
-        public string maxim {
+        [global::System.Configuration.DefaultSettingValueAttribute("WelcomeTitle")]
+        public string WelcomeTitle {
             get {
-                return ((string)(this["maxim"]));
+                return ((string)(this["WelcomeTitle"]));
             }
             set {
-                this["maxim"] = value;
+                this["WelcomeTitle"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("Password")]
+        public string Password {
+            get {
+                return ((string)(this["Password"]));
+            }
+            set {
+                this["Password"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("Username")]
+        public string Username {
+            get {
+                return ((string)(this["Username"]));
+            }
+            set {
+                this["Username"] = value;
             }
         }
     }

+ 12 - 6
Settings1.settings

@@ -2,14 +2,20 @@
 <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 Name="DatabaseName" Type="System.String" Scope="User">
+      <Value Profile="(Default)">DatabaseName</Value>
     </Setting>
-    <Setting Name="dbName1" Type="System.String" Scope="User">
-      <Value Profile="(Default)" />
+    <Setting Name="DatabaseSubtitle" Type="System.String" Scope="User">
+      <Value Profile="(Default)">DatabaseSubtitle</Value>
     </Setting>
-    <Setting Name="maxim" Type="System.String" Scope="User">
-      <Value Profile="(Default)" />
+    <Setting Name="WelcomeTitle" Type="System.String" Scope="User">
+      <Value Profile="(Default)">WelcomeTitle</Value>
+    </Setting>
+    <Setting Name="Password" Type="System.String" Scope="User">
+      <Value Profile="(Default)">Password</Value>
+    </Setting>
+    <Setting Name="Username" Type="System.String" Scope="User">
+      <Value Profile="(Default)">Username</Value>
     </Setting>
   </Settings>
 </SettingsFile>