ソースを参照

添加Sqlite数据库密码(结果用软件打不开了……)

yuzhengyang 8 年 前
コミット
20ce376c7f

+ 1 - 1
Fork.Net/Oreo.Plugins/Oreo.FileMan/App.config

@@ -8,7 +8,7 @@
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
   </startup>
   <connectionStrings>
-    <add name="DefaultConnection" connectionString="data source=|DataDirectory|\db.sqlite" providerName="System.Data.SQLite" />
+    <add name="DefaultConnection" connectionString="data source=|DataDirectory|\db.sqlite;password=123456;" providerName="System.Data.SQLite" />
   </connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

+ 15 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Oreo.FileMan.csproj

@@ -90,6 +90,12 @@
     <Compile Include="DatabaseEngine\Muse.cs" />
     <Compile Include="Helpers\FileHelper.cs" />
     <Compile Include="Models\Files.cs" />
+    <Compile Include="Partial\FileBackupPartial.cs">
+      <SubType>UserControl</SubType>
+    </Compile>
+    <Compile Include="Partial\FileBackupPartial.Designer.cs">
+      <DependentUpon>FileBackupPartial.cs</DependentUpon>
+    </Compile>
     <Compile Include="Partial\FileDecryptPartial.cs">
       <SubType>UserControl</SubType>
     </Compile>
@@ -116,6 +122,15 @@
     <Compile Include="Views\MainForm.Designer.cs">
       <DependentUpon>MainForm.cs</DependentUpon>
     </Compile>
+    <Compile Include="Views\SettingsForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Views\SettingsForm.Designer.cs">
+      <DependentUpon>SettingsForm.cs</DependentUpon>
+    </Compile>
+    <EmbeddedResource Include="Partial\FileBackupPartial.resx">
+      <DependentUpon>FileBackupPartial.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Partial\FileDecryptPartial.resx">
       <DependentUpon>FileDecryptPartial.cs</DependentUpon>
     </EmbeddedResource>

+ 159 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileBackupPartial.Designer.cs

@@ -0,0 +1,159 @@
+namespace Oreo.FileMan.Partial
+{
+    partial class FileBackupPartial
+    {
+        /// <summary> 
+        /// 必需的设计器变量。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary> 
+        /// 清理所有正在使用的资源。
+        /// </summary>
+        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region 组件设计器生成的代码
+
+        /// <summary> 
+        /// 设计器支持所需的方法 - 不要修改
+        /// 使用代码编辑器修改此方法的内容。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.DgvPath = new System.Windows.Forms.DataGridView();
+            this.button1 = new System.Windows.Forms.Button();
+            this.DgvPathName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvPathSize = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvFile = new System.Windows.Forms.DataGridView();
+            this.DgvFileName = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvFilePath = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvFileSize = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvFileVersionHistory = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.DgvFileLastBackupTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvPath)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvFile)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // DgvPath
+            // 
+            this.DgvPath.AllowUserToAddRows = false;
+            this.DgvPath.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvPath.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.DgvPathName,
+            this.DgvPathSize});
+            this.DgvPath.Location = new System.Drawing.Point(3, 32);
+            this.DgvPath.Name = "DgvPath";
+            this.DgvPath.ReadOnly = true;
+            this.DgvPath.RowHeadersVisible = false;
+            this.DgvPath.RowTemplate.Height = 23;
+            this.DgvPath.Size = new System.Drawing.Size(218, 291);
+            this.DgvPath.TabIndex = 0;
+            // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(3, 3);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(75, 23);
+            this.button1.TabIndex = 1;
+            this.button1.Text = "button1";
+            this.button1.UseVisualStyleBackColor = true;
+            // 
+            // DgvPathName
+            // 
+            this.DgvPathName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+            this.DgvPathName.HeaderText = "文件夹";
+            this.DgvPathName.Name = "DgvPathName";
+            this.DgvPathName.ReadOnly = true;
+            // 
+            // DgvPathSize
+            // 
+            this.DgvPathSize.HeaderText = "大小";
+            this.DgvPathSize.Name = "DgvPathSize";
+            this.DgvPathSize.ReadOnly = true;
+            this.DgvPathSize.Width = 60;
+            // 
+            // DgvFile
+            // 
+            this.DgvFile.AllowUserToAddRows = false;
+            this.DgvFile.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvFile.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.DgvFileName,
+            this.DgvFilePath,
+            this.DgvFileSize,
+            this.DgvFileVersionHistory,
+            this.DgvFileLastBackupTime});
+            this.DgvFile.Location = new System.Drawing.Point(252, 32);
+            this.DgvFile.Name = "DgvFile";
+            this.DgvFile.ReadOnly = true;
+            this.DgvFile.RowHeadersVisible = false;
+            this.DgvFile.RowTemplate.Height = 23;
+            this.DgvFile.Size = new System.Drawing.Size(391, 291);
+            this.DgvFile.TabIndex = 2;
+            // 
+            // DgvFileName
+            // 
+            this.DgvFileName.HeaderText = "文件名";
+            this.DgvFileName.Name = "DgvFileName";
+            this.DgvFileName.ReadOnly = true;
+            // 
+            // DgvFilePath
+            // 
+            this.DgvFilePath.HeaderText = "路径";
+            this.DgvFilePath.Name = "DgvFilePath";
+            this.DgvFilePath.ReadOnly = true;
+            // 
+            // DgvFileSize
+            // 
+            this.DgvFileSize.HeaderText = "大小";
+            this.DgvFileSize.Name = "DgvFileSize";
+            this.DgvFileSize.ReadOnly = true;
+            // 
+            // DgvFileVersionHistory
+            // 
+            this.DgvFileVersionHistory.HeaderText = "历史版本";
+            this.DgvFileVersionHistory.Name = "DgvFileVersionHistory";
+            this.DgvFileVersionHistory.ReadOnly = true;
+            // 
+            // DgvFileLastBackupTime
+            // 
+            this.DgvFileLastBackupTime.HeaderText = "最后备份时间";
+            this.DgvFileLastBackupTime.Name = "DgvFileLastBackupTime";
+            this.DgvFileLastBackupTime.ReadOnly = true;
+            // 
+            // FileBackupPartial
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.Controls.Add(this.DgvFile);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.DgvPath);
+            this.Name = "FileBackupPartial";
+            this.Size = new System.Drawing.Size(646, 326);
+            ((System.ComponentModel.ISupportInitialize)(this.DgvPath)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvFile)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.DataGridView DgvPath;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvPathName;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvPathSize;
+        private System.Windows.Forms.DataGridView DgvFile;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvFileName;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvFilePath;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvFileSize;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvFileVersionHistory;
+        private System.Windows.Forms.DataGridViewTextBoxColumn DgvFileLastBackupTime;
+    }
+}

+ 20 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileBackupPartial.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Oreo.FileMan.Partial
+{
+    public partial class FileBackupPartial : UserControl
+    {
+        public FileBackupPartial()
+        {
+            InitializeComponent();
+        } 
+    }
+}

+ 141 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileBackupPartial.resx

@@ -0,0 +1,141 @@
+<?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>
+  <metadata name="DgvPathName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvPathSize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvFileName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvFilePath.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvFileSize.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvFileVersionHistory.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="DgvFileLastBackupTime.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>

+ 44 - 37
Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileTypePartial.cs

@@ -39,48 +39,54 @@ namespace Oreo.FileMan.Partial
 
         void Start()
         {
-            Task.Factory.StartNew(() => { GetAllFileToDb(); });
+            if (true)
+            {
+                Task.Factory.StartNew(() => { GetAllFileToDb(); });
+            }
 
-            Task.Factory.StartNew(() =>
+            if (false)
             {
-                while (!IsDisposed)
+                Task.Factory.StartNew(() =>
                 {
-                    Thread.Sleep(30 * 1000);
+                    while (!IsDisposed)
+                    {
+                        Thread.Sleep(30 * 1000);
 
-                    //视频
-                    UISearchFileWaiting(LbVideoCount);
-                    Thread.Sleep(2000);
-                    int ctv = GetTypeFileCount(TypeVideo);
-                    UISetFileCount(LbVideoCount, ctv);
-                    //文档
-                    UISearchFileWaiting(LbDocCount);
-                    Thread.Sleep(2000);
-                    int ctd = GetTypeFileCount(TypeDoc);
-                    UISetFileCount(LbDocCount, ctd);
-                    //图片
-                    UISearchFileWaiting(LbPictureCount);
-                    Thread.Sleep(2000);
-                    int ctp = GetTypeFileCount(TypePicture);
-                    UISetFileCount(LbPictureCount, ctp);
-                    //音乐
-                    UISearchFileWaiting(LbMusicCount);
-                    Thread.Sleep(2000);
-                    int ctm = GetTypeFileCount(TypeMusic);
-                    UISetFileCount(LbMusicCount, ctm);
-                    //安装包
-                    UISearchFileWaiting(LbSetupCount);
-                    Thread.Sleep(2000);
-                    int cts = GetTypeFileCount(TypeSetup);
-                    UISetFileCount(LbSetupCount, cts);
-                    //压缩包
-                    UISearchFileWaiting(LbZipCount);
-                    Thread.Sleep(2000);
-                    int ctz = GetTypeFileCount(TypeZip);
-                    UISetFileCount(LbZipCount, ctz);
+                        //视频
+                        UISearchFileWaiting(LbVideoCount);
+                        Thread.Sleep(2000);
+                        int ctv = GetTypeFileCount(TypeVideo);
+                        UISetFileCount(LbVideoCount, ctv);
+                        //文档
+                        UISearchFileWaiting(LbDocCount);
+                        Thread.Sleep(2000);
+                        int ctd = GetTypeFileCount(TypeDoc);
+                        UISetFileCount(LbDocCount, ctd);
+                        //图片
+                        UISearchFileWaiting(LbPictureCount);
+                        Thread.Sleep(2000);
+                        int ctp = GetTypeFileCount(TypePicture);
+                        UISetFileCount(LbPictureCount, ctp);
+                        //音乐
+                        UISearchFileWaiting(LbMusicCount);
+                        Thread.Sleep(2000);
+                        int ctm = GetTypeFileCount(TypeMusic);
+                        UISetFileCount(LbMusicCount, ctm);
+                        //安装包
+                        UISearchFileWaiting(LbSetupCount);
+                        Thread.Sleep(2000);
+                        int cts = GetTypeFileCount(TypeSetup);
+                        UISetFileCount(LbSetupCount, cts);
+                        //压缩包
+                        UISearchFileWaiting(LbZipCount);
+                        Thread.Sleep(2000);
+                        int ctz = GetTypeFileCount(TypeZip);
+                        UISetFileCount(LbZipCount, ctz);
 
-                    UISearchFileWaiting(LbZipCount, false);
-                }
-            });
+                        UISearchFileWaiting(LbZipCount, false);
+                    }
+                });
+            }
         }
 
         private int GetTypeFileCount(string[] type)
@@ -140,6 +146,7 @@ namespace Oreo.FileMan.Partial
                         UISetFileCount(count, total);
                     }
                 }
+                //GC.Collect();
             }
         }
 

+ 118 - 38
Fork.Net/Oreo.Plugins/Oreo.FileMan/Views/MainForm.Designer.cs

@@ -32,8 +32,11 @@
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
             this.tabControl1 = new System.Windows.Forms.TabControl();
             this.TpFIleType = new System.Windows.Forms.TabPage();
+            this.fileTypePartial1 = new Oreo.FileMan.Partial.FileTypePartial();
             this.TpFileEncrypt = new System.Windows.Forms.TabPage();
+            this.fileEncryptPartial1 = new Oreo.FileMan.Partial.FileEncryptPartial();
             this.TpFileDecrypt = new System.Windows.Forms.TabPage();
+            this.fileDecryptPartial1 = new Oreo.FileMan.Partial.FileDecryptPartial();
             this.TpFileBackup = new System.Windows.Forms.TabPage();
             this.LbFileType = new System.Windows.Forms.Label();
             this.LbFileBackup = new System.Windows.Forms.Label();
@@ -41,17 +44,23 @@
             this.LbTitle = new System.Windows.Forms.Label();
             this.BtClose = new System.Windows.Forms.Button();
             this.tip = new System.Windows.Forms.ToolTip(this.components);
+            this.LbAppVersion = new System.Windows.Forms.Label();
+            this.BTSettings = new System.Windows.Forms.Button();
             this.LbFileDecrypt = new System.Windows.Forms.Label();
-            this.panel1 = new System.Windows.Forms.Panel();
+            this.PnBody = new System.Windows.Forms.Panel();
+            this.NiMain = new System.Windows.Forms.NotifyIcon(this.components);
+            this.PnMain = new System.Windows.Forms.Panel();
+            this.PnBotton = new System.Windows.Forms.Panel();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.fileTypePartial1 = new Oreo.FileMan.Partial.FileTypePartial();
-            this.fileEncryptPartial1 = new Oreo.FileMan.Partial.FileEncryptPartial();
-            this.fileDecryptPartial1 = new Oreo.FileMan.Partial.FileDecryptPartial();
+            this.fileBackupPartial1 = new Oreo.FileMan.Partial.FileBackupPartial();
             this.tabControl1.SuspendLayout();
             this.TpFIleType.SuspendLayout();
             this.TpFileEncrypt.SuspendLayout();
             this.TpFileDecrypt.SuspendLayout();
-            this.panel1.SuspendLayout();
+            this.TpFileBackup.SuspendLayout();
+            this.PnBody.SuspendLayout();
+            this.PnMain.SuspendLayout();
+            this.PnBotton.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
@@ -78,6 +87,15 @@
             this.TpFIleType.Text = "文件分类";
             this.TpFIleType.UseVisualStyleBackColor = true;
             // 
+            // fileTypePartial1
+            // 
+            this.fileTypePartial1.BackColor = System.Drawing.Color.White;
+            this.fileTypePartial1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.fileTypePartial1.Location = new System.Drawing.Point(3, 3);
+            this.fileTypePartial1.Name = "fileTypePartial1";
+            this.fileTypePartial1.Size = new System.Drawing.Size(646, 326);
+            this.fileTypePartial1.TabIndex = 0;
+            // 
             // TpFileEncrypt
             // 
             this.TpFileEncrypt.Controls.Add(this.fileEncryptPartial1);
@@ -89,6 +107,14 @@
             this.TpFileEncrypt.Text = "文件加密";
             this.TpFileEncrypt.UseVisualStyleBackColor = true;
             // 
+            // fileEncryptPartial1
+            // 
+            this.fileEncryptPartial1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.fileEncryptPartial1.Location = new System.Drawing.Point(3, 3);
+            this.fileEncryptPartial1.Name = "fileEncryptPartial1";
+            this.fileEncryptPartial1.Size = new System.Drawing.Size(646, 326);
+            this.fileEncryptPartial1.TabIndex = 0;
+            // 
             // TpFileDecrypt
             // 
             this.TpFileDecrypt.Controls.Add(this.fileDecryptPartial1);
@@ -100,8 +126,17 @@
             this.TpFileDecrypt.Text = "文件解密";
             this.TpFileDecrypt.UseVisualStyleBackColor = true;
             // 
+            // fileDecryptPartial1
+            // 
+            this.fileDecryptPartial1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.fileDecryptPartial1.Location = new System.Drawing.Point(3, 3);
+            this.fileDecryptPartial1.Name = "fileDecryptPartial1";
+            this.fileDecryptPartial1.Size = new System.Drawing.Size(646, 326);
+            this.fileDecryptPartial1.TabIndex = 0;
+            // 
             // TpFileBackup
             // 
+            this.TpFileBackup.Controls.Add(this.fileBackupPartial1);
             this.TpFileBackup.Location = new System.Drawing.Point(4, 22);
             this.TpFileBackup.Name = "TpFileBackup";
             this.TpFileBackup.Padding = new System.Windows.Forms.Padding(3);
@@ -172,6 +207,32 @@
             this.BtClose.UseVisualStyleBackColor = true;
             this.BtClose.Click += new System.EventHandler(this.BtClose_Click);
             // 
+            // LbAppVersion
+            // 
+            this.LbAppVersion.ForeColor = System.Drawing.Color.Gray;
+            this.LbAppVersion.Location = new System.Drawing.Point(501, 4);
+            this.LbAppVersion.Name = "LbAppVersion";
+            this.LbAppVersion.Size = new System.Drawing.Size(140, 19);
+            this.LbAppVersion.TabIndex = 0;
+            this.LbAppVersion.Text = "当前版本:10.10.10.10";
+            this.LbAppVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.tip.SetToolTip(this.LbAppVersion, "当前软件版本");
+            // 
+            // BTSettings
+            // 
+            this.BTSettings.FlatAppearance.BorderSize = 0;
+            this.BTSettings.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.BTSettings.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.BTSettings.ForeColor = System.Drawing.Color.White;
+            this.BTSettings.Location = new System.Drawing.Point(583, 7);
+            this.BTSettings.Name = "BTSettings";
+            this.BTSettings.Size = new System.Drawing.Size(30, 23);
+            this.BTSettings.TabIndex = 23;
+            this.BTSettings.Text = "✿";
+            this.tip.SetToolTip(this.BTSettings, "设置");
+            this.BTSettings.UseVisualStyleBackColor = true;
+            this.BTSettings.Click += new System.EventHandler(this.BTSettings_Click);
+            // 
             // LbFileDecrypt
             // 
             this.LbFileDecrypt.AutoSize = true;
@@ -184,14 +245,39 @@
             this.LbFileDecrypt.Text = "/ 解密";
             this.LbFileDecrypt.Click += new System.EventHandler(this.LbFileDecrypt_Click);
             // 
-            // panel1
+            // PnBody
+            // 
+            this.PnBody.Controls.Add(this.tabControl1);
+            this.PnBody.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.PnBody.Location = new System.Drawing.Point(0, 0);
+            this.PnBody.Name = "PnBody";
+            this.PnBody.Size = new System.Drawing.Size(650, 356);
+            this.PnBody.TabIndex = 21;
+            // 
+            // NiMain
+            // 
+            this.NiMain.Icon = ((System.Drawing.Icon)(resources.GetObject("NiMain.Icon")));
+            this.NiMain.Text = "notifyIcon1";
+            this.NiMain.Visible = true;
             // 
-            this.panel1.Controls.Add(this.tabControl1);
-            this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.panel1.Location = new System.Drawing.Point(0, 72);
-            this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(650, 328);
-            this.panel1.TabIndex = 21;
+            // PnMain
+            // 
+            this.PnMain.Controls.Add(this.PnBotton);
+            this.PnMain.Controls.Add(this.PnBody);
+            this.PnMain.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.PnMain.Location = new System.Drawing.Point(0, 70);
+            this.PnMain.Name = "PnMain";
+            this.PnMain.Size = new System.Drawing.Size(650, 356);
+            this.PnMain.TabIndex = 22;
+            // 
+            // PnBotton
+            // 
+            this.PnBotton.Controls.Add(this.LbAppVersion);
+            this.PnBotton.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.PnBotton.Location = new System.Drawing.Point(0, 329);
+            this.PnBotton.Name = "PnBotton";
+            this.PnBotton.Size = new System.Drawing.Size(650, 27);
+            this.PnBotton.TabIndex = 22;
             // 
             // pictureBox1
             // 
@@ -203,37 +289,22 @@
             this.pictureBox1.TabIndex = 17;
             this.pictureBox1.TabStop = false;
             // 
-            // fileTypePartial1
+            // fileBackupPartial1
             // 
-            this.fileTypePartial1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.fileTypePartial1.Location = new System.Drawing.Point(3, 3);
-            this.fileTypePartial1.Name = "fileTypePartial1";
-            this.fileTypePartial1.Size = new System.Drawing.Size(646, 326);
-            this.fileTypePartial1.TabIndex = 0;
-            // 
-            // fileEncryptPartial1
-            // 
-            this.fileEncryptPartial1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.fileEncryptPartial1.Location = new System.Drawing.Point(3, 3);
-            this.fileEncryptPartial1.Name = "fileEncryptPartial1";
-            this.fileEncryptPartial1.Size = new System.Drawing.Size(646, 326);
-            this.fileEncryptPartial1.TabIndex = 0;
-            // 
-            // fileDecryptPartial1
-            // 
-            this.fileDecryptPartial1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.fileDecryptPartial1.Location = new System.Drawing.Point(3, 3);
-            this.fileDecryptPartial1.Name = "fileDecryptPartial1";
-            this.fileDecryptPartial1.Size = new System.Drawing.Size(646, 326);
-            this.fileDecryptPartial1.TabIndex = 0;
+            this.fileBackupPartial1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.fileBackupPartial1.Location = new System.Drawing.Point(3, 3);
+            this.fileBackupPartial1.Name = "fileBackupPartial1";
+            this.fileBackupPartial1.Size = new System.Drawing.Size(646, 326);
+            this.fileBackupPartial1.TabIndex = 0;
             // 
             // MainForm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(43)))), ((int)(((byte)(54)))));
-            this.ClientSize = new System.Drawing.Size(650, 400);
-            this.Controls.Add(this.panel1);
+            this.ClientSize = new System.Drawing.Size(650, 426);
+            this.Controls.Add(this.BTSettings);
+            this.Controls.Add(this.PnMain);
             this.Controls.Add(this.LbFileDecrypt);
             this.Controls.Add(this.BtClose);
             this.Controls.Add(this.LbTitle);
@@ -250,7 +321,10 @@
             this.TpFIleType.ResumeLayout(false);
             this.TpFileEncrypt.ResumeLayout(false);
             this.TpFileDecrypt.ResumeLayout(false);
-            this.panel1.ResumeLayout(false);
+            this.TpFileBackup.ResumeLayout(false);
+            this.PnBody.ResumeLayout(false);
+            this.PnMain.ResumeLayout(false);
+            this.PnBotton.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
@@ -271,9 +345,15 @@
         private System.Windows.Forms.ToolTip tip;
         private System.Windows.Forms.TabPage TpFileDecrypt;
         private System.Windows.Forms.Label LbFileDecrypt;
-        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Panel PnBody;
         private Partial.FileEncryptPartial fileEncryptPartial1;
         private Partial.FileDecryptPartial fileDecryptPartial1;
         private Partial.FileTypePartial fileTypePartial1;
+        private System.Windows.Forms.NotifyIcon NiMain;
+        private System.Windows.Forms.Panel PnMain;
+        private System.Windows.Forms.Panel PnBotton;
+        private System.Windows.Forms.Label LbAppVersion;
+        private System.Windows.Forms.Button BTSettings;
+        private Partial.FileBackupPartial fileBackupPartial1;
     }
 }

+ 9 - 3
Fork.Net/Oreo.Plugins/Oreo.FileMan/Views/MainForm.cs

@@ -54,7 +54,15 @@ namespace Oreo.FileMan.Views
             now.ForeColor = Color.White;
         }
         #endregion
-        #region 退出
+        /// <summary>
+        /// 设置
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void BTSettings_Click(object sender, EventArgs e)
+        {
+            new SettingsForm().ShowDialog();
+        }
         /// <summary>
         /// 退出
         /// </summary>
@@ -64,7 +72,5 @@ namespace Oreo.FileMan.Views
         {
             BeginInvoke(new Action(() => { Close(); }));
         }
-
-        #endregion
     }
 }

ファイルの差分が大きいため隠しています
+ 1993 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Views/MainForm.resx


+ 38 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Views/SettingsForm.Designer.cs

@@ -0,0 +1,38 @@
+namespace Oreo.FileMan.Views
+{
+    partial class SettingsForm
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.Text = "SettingsForm";
+        }
+
+        #endregion
+    }
+}

+ 20 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Views/SettingsForm.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Oreo.FileMan.Views
+{
+    public partial class SettingsForm : Form
+    {
+        public SettingsForm()
+        {
+            InitializeComponent();
+        }
+    }
+}