Просмотр исходного кода

chore: 解除 Demo 源码的版本跟踪(本地文件与解决方案引用均保留)

詹飞 1 месяц назад
Родитель
Сommit
728cdcfe52
7 измененных файлов с 3 добавлено и 603 удалено
  1. 3 0
      .gitignore
  2. 0 6
      Demo/Demo/App.config
  3. 0 94
      Demo/Demo/Demo.csproj
  4. 0 217
      Demo/Demo/Form1.Designer.cs
  5. 0 144
      Demo/Demo/Form1.cs
  6. 0 120
      Demo/Demo/Form1.resx
  7. 0 22
      Demo/Demo/Program.cs

+ 3 - 0
.gitignore

@@ -385,3 +385,6 @@ MigrationBackup/
 # Fody - auto-generated XML schema
 FodyWeavers.xsd
 /.workbuddy/memory
+
+# Demo 测试项目(不纳入版本管理)
+/Demo/

+ 0 - 6
Demo/Demo/App.config

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
-    <startup> 
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
-    </startup>
-</configuration>

+ 0 - 94
Demo/Demo/Demo.csproj

@@ -1,94 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{F1282259-0D72-48B6-800D-E8EA9D840D61}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
-    <RootNamespace>Demo</RootNamespace>
-    <AssemblyName>Demo</AssemblyName>
-    <TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
-    <FileAlignment>512</FileAlignment>
-    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
-    <Deterministic>true</Deterministic>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Core" />
-    <Reference Include="System.Xml.Linq" />
-    <Reference Include="System.Data.DataSetExtensions" />
-    <Reference Include="Microsoft.CSharp" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Deployment" />
-    <Reference Include="System.Drawing" />
-    <Reference Include="System.Net.Http" />
-    <Reference Include="System.Windows.Forms" />
-    <Reference Include="System.Xml" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Form1.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="Form1.Designer.cs">
-      <DependentUpon>Form1.cs</DependentUpon>
-    </Compile>
-    <Compile Include="Program.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <EmbeddedResource Include="Form1.resx">
-      <DependentUpon>Form1.cs</DependentUpon>
-    </EmbeddedResource>
-    <EmbeddedResource Include="Properties\Resources.resx">
-      <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
-    <None Include="Properties\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
-    </None>
-    <Compile Include="Properties\Settings.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Settings.settings</DependentUpon>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-    </Compile>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="App.config" />
-  </ItemGroup>
-  <ItemGroup>
-    <COMReference Include="cressWSDLLLib">
-      <Guid>{5D6A3723-712A-46C4-9ED8-326F52C4B0A7}</Guid>
-      <VersionMajor>1</VersionMajor>
-      <VersionMinor>0</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>tlbimp</WrapperTool>
-      <Isolated>False</Isolated>
-      <EmbedInteropTypes>True</EmbedInteropTypes>
-    </COMReference>
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-</Project>

+ 0 - 217
Demo/Demo/Form1.Designer.cs

@@ -1,217 +0,0 @@
-
-namespace Demo
-{
-    partial class Form1
-    {
-        /// <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 Windows 窗体设计器生成的代码
-
-        /// <summary>
-        /// 设计器支持所需的方法 - 不要修改
-        /// 使用代码编辑器修改此方法的内容。
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.pnlBottom = new System.Windows.Forms.Panel();
-            this.button1 = new System.Windows.Forms.Button();
-            this.btSaveExample = new System.Windows.Forms.Button();
-            this.btExit = new System.Windows.Forms.Button();
-            this.btCall = new System.Windows.Forms.Button();
-            this.btExample = new System.Windows.Forms.Button();
-            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
-            this.rtbInpar = new System.Windows.Forms.RichTextBox();
-            this.rtbOutpar = new System.Windows.Forms.RichTextBox();
-            this.cbxMethod = new System.Windows.Forms.ComboBox();
-            this.button2 = new System.Windows.Forms.Button();
-            this.pnlBottom.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
-            this.splitContainer1.Panel1.SuspendLayout();
-            this.splitContainer1.Panel2.SuspendLayout();
-            this.splitContainer1.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // pnlBottom
-            // 
-            this.pnlBottom.Controls.Add(this.button2);
-            this.pnlBottom.Controls.Add(this.cbxMethod);
-            this.pnlBottom.Controls.Add(this.button1);
-            this.pnlBottom.Controls.Add(this.btSaveExample);
-            this.pnlBottom.Controls.Add(this.btExit);
-            this.pnlBottom.Controls.Add(this.btCall);
-            this.pnlBottom.Controls.Add(this.btExample);
-            this.pnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.pnlBottom.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.pnlBottom.Location = new System.Drawing.Point(0, 369);
-            this.pnlBottom.Name = "pnlBottom";
-            this.pnlBottom.Size = new System.Drawing.Size(979, 124);
-            this.pnlBottom.TabIndex = 3;
-            // 
-            // button1
-            // 
-            this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.button1.Location = new System.Drawing.Point(498, 14);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(115, 36);
-            this.button1.TabIndex = 6;
-            this.button1.Text = "调用2";
-            this.button1.UseVisualStyleBackColor = true;
-            this.button1.Click += new System.EventHandler(this.button1_Click);
-            // 
-            // btSaveExample
-            // 
-            this.btSaveExample.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.btSaveExample.Location = new System.Drawing.Point(661, 76);
-            this.btSaveExample.Name = "btSaveExample";
-            this.btSaveExample.Size = new System.Drawing.Size(115, 36);
-            this.btSaveExample.TabIndex = 5;
-            this.btSaveExample.Text = "保存示例";
-            this.btSaveExample.UseVisualStyleBackColor = true;
-            // 
-            // btExit
-            // 
-            this.btExit.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.btExit.Location = new System.Drawing.Point(843, 76);
-            this.btExit.Name = "btExit";
-            this.btExit.Size = new System.Drawing.Size(115, 36);
-            this.btExit.TabIndex = 4;
-            this.btExit.Text = "退出";
-            this.btExit.UseVisualStyleBackColor = true;
-            // 
-            // btCall
-            // 
-            this.btCall.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.btCall.Location = new System.Drawing.Point(843, 14);
-            this.btCall.Name = "btCall";
-            this.btCall.Size = new System.Drawing.Size(115, 36);
-            this.btCall.TabIndex = 3;
-            this.btCall.Text = "调用";
-            this.btCall.UseVisualStyleBackColor = true;
-            this.btCall.Click += new System.EventHandler(this.btCall_Click);
-            // 
-            // btExample
-            // 
-            this.btExample.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.btExample.Location = new System.Drawing.Point(661, 14);
-            this.btExample.Name = "btExample";
-            this.btExample.Size = new System.Drawing.Size(115, 36);
-            this.btExample.TabIndex = 2;
-            this.btExample.Text = "示例";
-            this.btExample.UseVisualStyleBackColor = true;
-            // 
-            // splitContainer1
-            // 
-            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
-            this.splitContainer1.Name = "splitContainer1";
-            // 
-            // splitContainer1.Panel1
-            // 
-            this.splitContainer1.Panel1.Controls.Add(this.rtbInpar);
-            // 
-            // splitContainer1.Panel2
-            // 
-            this.splitContainer1.Panel2.Controls.Add(this.rtbOutpar);
-            this.splitContainer1.Size = new System.Drawing.Size(979, 369);
-            this.splitContainer1.SplitterDistance = 467;
-            this.splitContainer1.TabIndex = 4;
-            // 
-            // rtbInpar
-            // 
-            this.rtbInpar.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.rtbInpar.Location = new System.Drawing.Point(0, 0);
-            this.rtbInpar.Name = "rtbInpar";
-            this.rtbInpar.Size = new System.Drawing.Size(467, 369);
-            this.rtbInpar.TabIndex = 0;
-            this.rtbInpar.Text = "{  \"p_sxh\": \"0\",  \"p_ypbz\": \"\"}";
-            // 
-            // rtbOutpar
-            // 
-            this.rtbOutpar.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.rtbOutpar.Location = new System.Drawing.Point(0, 0);
-            this.rtbOutpar.Name = "rtbOutpar";
-            this.rtbOutpar.Size = new System.Drawing.Size(508, 369);
-            this.rtbOutpar.TabIndex = 2;
-            this.rtbOutpar.Text = "";
-            // 
-            // cbxMethod
-            // 
-            this.cbxMethod.FormattingEnabled = true;
-            this.cbxMethod.Items.AddRange(new object[] {
-            "query_yyxm_info_by_sxh",
-            "query_yyxm_info_mz_by_sxh",
-            "query_ml_by_sxh",
-            "query_ml_mz_by_sxh",
-            "query_si_sick_by_sxh"});
-            this.cbxMethod.Location = new System.Drawing.Point(12, 21);
-            this.cbxMethod.Name = "cbxMethod";
-            this.cbxMethod.Size = new System.Drawing.Size(390, 24);
-            this.cbxMethod.TabIndex = 7;
-            // 
-            // button2
-            // 
-            this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.button2.Location = new System.Drawing.Point(498, 76);
-            this.button2.Name = "button2";
-            this.button2.Size = new System.Drawing.Size(115, 36);
-            this.button2.TabIndex = 8;
-            this.button2.Text = "调用3";
-            this.button2.UseVisualStyleBackColor = true;
-            this.button2.Click += new System.EventHandler(this.button2_Click);
-            // 
-            // Form1
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(979, 493);
-            this.Controls.Add(this.splitContainer1);
-            this.Controls.Add(this.pnlBottom);
-            this.Name = "Form1";
-            this.Text = "Form1";
-            this.pnlBottom.ResumeLayout(false);
-            this.splitContainer1.Panel1.ResumeLayout(false);
-            this.splitContainer1.Panel2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
-            this.splitContainer1.ResumeLayout(false);
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        public System.Windows.Forms.Panel pnlBottom;
-        public System.Windows.Forms.Button btSaveExample;
-        public System.Windows.Forms.Button btExit;
-        public System.Windows.Forms.Button btCall;
-        public System.Windows.Forms.Button btExample;
-        public System.Windows.Forms.SplitContainer splitContainer1;
-        public System.Windows.Forms.RichTextBox rtbInpar;
-        public System.Windows.Forms.RichTextBox rtbOutpar;
-        public System.Windows.Forms.Button button1;
-        private System.Windows.Forms.ComboBox cbxMethod;
-        public System.Windows.Forms.Button button2;
-    }
-}
-

+ 0 - 144
Demo/Demo/Form1.cs

@@ -1,144 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Runtime.InteropServices;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Demo
-{
-    public partial class Form1 : Form
-    {
-        //[DllImport("SSCard.dll", EntryPoint = "f_invoke_cress", CharSet = CharSet.Ansi, ExactSpelling = false, CallingConvention = CallingConvention.StdCall)]
-        //[DllImport("cressWSDLL.dll", EntryPoint = "f_invoke_cress", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
-        //private static extern IntPtr f_invoke_cress(
-        //    string sbjgbh,
-        //    string czybh,
-        //    string hisjyh,
-        //    string method,
-        //    string jsonPara,
-        //    string yybm);
-
-        //[DllImport("cressWSDLL.dll", EntryPoint = "f_invoke_cress", CharSet = CharSet.Ansi, ExactSpelling = false, CallingConvention = CallingConvention.StdCall)]
-        //private static extern int f_invoke_cress(IntPtr sbjgbh, IntPtr czybh, IntPtr hisjyh, IntPtr method, IntPtr jsonPara, IntPtr yybm, IntPtr outMsg);
-
-        [DllImport("cressWSDLL.dll", EntryPoint = "f_invoke_cress",
-    CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
-        private static extern int f_invoke_cress(
-    string sbjgbh,
-    string czybh,
-    string hisjyh,
-    string method,
-    string jsonPara,
-    string yybm,
-    StringBuilder outMsg);
-
-        public Form1()
-        {
-            InitializeComponent();
-            cbxMethod.SelectedIndex = 0;
-        }
-
-        private void btCall_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                //// com调用
-                cressWSDLLLib.DWCressCom comCls = new cressWSDLLLib.DWCressCom();
-                string msgID = "H37010300028" + DateTime.Now.ToString("yyyyMMddHHmmssffff");
-                rtbOutpar.Text = comCls.f_invoke_cress_com("370100", "001", msgID, cbxMethod.Text, rtbInpar.Text, "011408");
-            }
-            catch (Exception ex)
-            {
-                MessageBox.Show(ex.Message);
-                throw;
-            }
-        }
-
-
-
-        private void button1_Click(object sender, EventArgs e)
-        {
-            string msgID = "H37010300028" + DateTime.Now.ToString("yyyyMMddHHmmssffff");
-            //rtbOutpar.Text = Marshal.PtrToStringAuto(f_invoke_cress("370100", "001", msgID, cbxMethod.Text, rtbInpar.Text, "011408"));
-            //int rtn = -1;
-            //// 分配全局非托管内存
-            //// 将托管字符串转换为 ANSI 编码的字节数组
-            //byte[] sbjgbhBytes = Encoding.ASCII.GetBytes("370100" + '\0'); // 添加终止符
-            //byte[] czybhBytes = Encoding.ASCII.GetBytes("001" + '\0'); // 添加终止符
-            //byte[] hisjyhBytes = Encoding.ASCII.GetBytes(msgID + '\0');
-            //byte[] methodBytes = Encoding.ASCII.GetBytes(cbxMethod.Text + '\0');
-            //byte[] jsonParaBytes = Encoding.ASCII.GetBytes(rtbInpar.Text + '\0');
-            //byte[] yybmBytes = Encoding.ASCII.GetBytes("011408" + '\0');
-            ////// 分配非托管内存并复制字符串数据
-            ////IntPtr pUrl = Marshal.AllocCoTaskMem(urlBytes.Length);
-            ////IntPtr pUser = Marshal.AllocCoTaskMem(userBytes.Length);
-
-            //// 分配全局非托管内存并复制字符串数据
-            //IntPtr pSBJGBH = Marshal.AllocHGlobal(sbjgbhBytes.Length);
-            //IntPtr pCZYBH = Marshal.AllocHGlobal(czybhBytes.Length);
-            //IntPtr pHisjyh = Marshal.AllocHGlobal(hisjyhBytes.Length);
-            //IntPtr pMethod = Marshal.AllocHGlobal(methodBytes.Length);
-            //IntPtr pJsonPara = Marshal.AllocHGlobal(jsonParaBytes.Length);
-            //IntPtr pYYBM = Marshal.AllocHGlobal(yybmBytes.Length);
-            //IntPtr pOutMsg = Marshal.AllocHGlobal(81920);
-
-            //// 将托管字节数组复制到非托管内存
-            //Marshal.Copy(sbjgbhBytes, 0, pSBJGBH, sbjgbhBytes.Length);
-            //Marshal.Copy(czybhBytes, 0, pCZYBH, czybhBytes.Length);
-            //Marshal.Copy(hisjyhBytes, 0, pHisjyh, hisjyhBytes.Length);
-            //Marshal.Copy(methodBytes, 0, pMethod, methodBytes.Length);
-            //Marshal.Copy(jsonParaBytes, 0, pJsonPara, jsonParaBytes.Length);
-            //Marshal.Copy(yybmBytes, 0, pYYBM, yybmBytes.Length);
-            //try
-            //{
-            //    rtn = f_invoke_cress(pSBJGBH, pCZYBH, pHisjyh, pMethod,pJsonPara,pYYBM,pOutMsg);
-            //    rtbOutpar.AppendText($"rtn:{rtn}");
-            //    string outString = Marshal.PtrToStringAnsi(pOutMsg);
-            //    rtbOutpar.AppendText($"outString:{outString}");
-
-            //}
-            //catch (Exception ex)
-            //{
-            //    rtbOutpar.AppendText($"ex:{ex.Message}");
-            //}
-            //finally
-            //{
-            //    // 显式释放非托管内存
-            //    Marshal.FreeHGlobal(pSBJGBH);
-            //    Marshal.FreeHGlobal(pCZYBH);
-            //    Marshal.FreeHGlobal(pHisjyh);
-            //    Marshal.FreeHGlobal(pMethod);
-            //    Marshal.FreeHGlobal(pJsonPara);
-            //    Marshal.FreeHGlobal(pYYBM);
-            //    Marshal.FreeHGlobal(pOutMsg);
-            //}
-
-            string sbjgbh = "370100";
-            string czybh = "001";
-            string hisjyh = msgID;
-            string method = cbxMethod.Text;
-            string jsonPara = rtbInpar.Text;
-            string yybm = "011408";
-
-            StringBuilder outMsg = new StringBuilder(81920);
-
-            int rtn = f_invoke_cress(sbjgbh, czybh, hisjyh, method, jsonPara, yybm, outMsg);
-
-            rtbOutpar.AppendText($"rtn: {rtn}\n");
-            rtbOutpar.AppendText($"outString: {outMsg.ToString()}\n");
-        }
-
-        private void button2_Click(object sender, EventArgs e)
-        {
-            dynamic comObj = Activator.CreateInstance(Type.GetTypeFromProgID("cressWSDLLLib.DWCressComClass"));
-            string msgID = "H37010300028" + DateTime.Now.ToString("yyyyMMddHHmmssffff");
-            string result = comObj.f_invoke_cress_com("370100", "001", msgID, cbxMethod.Text, rtbInpar.Text, "011408");
-            rtbOutpar.Text = result;
-        }
-    }
-}

+ 0 - 120
Demo/Demo/Form1.resx

@@ -1,120 +0,0 @@
-<?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>
-</root>

+ 0 - 22
Demo/Demo/Program.cs

@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Demo
-{
-    static class Program
-    {
-        /// <summary>
-        /// 应用程序的主入口点。
-        /// </summary>
-        [STAThread]
-        static void Main()
-        {
-            Application.EnableVisualStyles();
-            Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new Form1());
-        }
-    }
-}