From 3b362a19b7d0f47ca51d304fd23c1a4c74b07c97 Mon Sep 17 00:00:00 2001
From: TanHua <2414765372@qq,com>
Date: Mon, 18 May 2020 14:43:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E5=BC=84=E5=AE=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DependencyInjection.sln | 8 +-
DependencyInjection/Component/DELL.cs | 1 +
WindowsFormHello/App.config | 6 +
WindowsFormHello/Form1.Designer.cs | 62 +++++++++
WindowsFormHello/Form1.cs | 21 +++
WindowsFormHello/Form1.resx | 120 ++++++++++++++++++
WindowsFormHello/Program.cs | 22 ++++
WindowsFormHello/Properties/AssemblyInfo.cs | 36 ++++++
.../Properties/Resources.Designer.cs | 71 +++++++++++
WindowsFormHello/Properties/Resources.resx | 117 +++++++++++++++++
.../Properties/Settings.Designer.cs | 30 +++++
WindowsFormHello/Properties/Settings.settings | 7 +
WindowsFormHello/ShowMessageViewModel.cs | 6 +
WindowsFormHello/WindowsFormHello.csproj | 100 +++++++++++++++
WindowsFormHello/packages.config | 5 +
15 files changed, 611 insertions(+), 1 deletion(-)
create mode 100644 WindowsFormHello/App.config
create mode 100644 WindowsFormHello/Form1.Designer.cs
create mode 100644 WindowsFormHello/Form1.cs
create mode 100644 WindowsFormHello/Form1.resx
create mode 100644 WindowsFormHello/Program.cs
create mode 100644 WindowsFormHello/Properties/AssemblyInfo.cs
create mode 100644 WindowsFormHello/Properties/Resources.Designer.cs
create mode 100644 WindowsFormHello/Properties/Resources.resx
create mode 100644 WindowsFormHello/Properties/Settings.Designer.cs
create mode 100644 WindowsFormHello/Properties/Settings.settings
create mode 100644 WindowsFormHello/ShowMessageViewModel.cs
create mode 100644 WindowsFormHello/WindowsFormHello.csproj
create mode 100644 WindowsFormHello/packages.config
diff --git a/DependencyInjection.sln b/DependencyInjection.sln
index d049405..f531c09 100644
--- a/DependencyInjection.sln
+++ b/DependencyInjection.sln
@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29911.84
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependencyInjection", "DependencyInjection\DependencyInjection.csproj", "{916BE9F3-0939-4F04-A63B-7EB6B84508C3}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DependencyInjection", "DependencyInjection\DependencyInjection.csproj", "{916BE9F3-0939-4F04-A63B-7EB6B84508C3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormHello", "WindowsFormHello\WindowsFormHello.csproj", "{C78382F7-8961-475D-AB7B-DF9FA21CA80A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,6 +17,10 @@ Global
{916BE9F3-0939-4F04-A63B-7EB6B84508C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{916BE9F3-0939-4F04-A63B-7EB6B84508C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{916BE9F3-0939-4F04-A63B-7EB6B84508C3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C78382F7-8961-475D-AB7B-DF9FA21CA80A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C78382F7-8961-475D-AB7B-DF9FA21CA80A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C78382F7-8961-475D-AB7B-DF9FA21CA80A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C78382F7-8961-475D-AB7B-DF9FA21CA80A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/DependencyInjection/Component/DELL.cs b/DependencyInjection/Component/DELL.cs
index 1aca42d..6f99d81 100644
--- a/DependencyInjection/Component/DELL.cs
+++ b/DependencyInjection/Component/DELL.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Text;
namespace DependencyInjection
+{
public class DELL : IViewingScreen
{
public string Show()
diff --git a/WindowsFormHello/App.config b/WindowsFormHello/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/WindowsFormHello/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WindowsFormHello/Form1.Designer.cs b/WindowsFormHello/Form1.Designer.cs
new file mode 100644
index 0000000..20ce9e8
--- /dev/null
+++ b/WindowsFormHello/Form1.Designer.cs
@@ -0,0 +1,62 @@
+namespace WindowsFormHello
+{
+ partial class Form1
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows 窗体设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.ForeColor = System.Drawing.Color.Black;
+ this.button1.Location = new System.Drawing.Point(255, 210);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(92, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "查看主机的配置";
+ this.button1.UseVisualStyleBackColor = true;
+ //this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(623, 384);
+ this.Controls.Add(this.button1);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ }
+}
+
diff --git a/WindowsFormHello/Form1.cs b/WindowsFormHello/Form1.cs
new file mode 100644
index 0000000..04679da
--- /dev/null
+++ b/WindowsFormHello/Form1.cs
@@ -0,0 +1,21 @@
+using Eco.ViewModel.Runtime;
+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 WindowsFormHello
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/WindowsFormHello/Form1.resx b/WindowsFormHello/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WindowsFormHello/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/WindowsFormHello/Program.cs b/WindowsFormHello/Program.cs
new file mode 100644
index 0000000..50ee59f
--- /dev/null
+++ b/WindowsFormHello/Program.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace WindowsFormHello
+{
+ static class Program
+ {
+ ///
+ /// 应用程序的主入口点。
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/WindowsFormHello/Properties/AssemblyInfo.cs b/WindowsFormHello/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..3eab6e7
--- /dev/null
+++ b/WindowsFormHello/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("WindowsFormHello")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WindowsFormHello")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("c78382f7-8961-475d-ab7b-df9fa21ca80a")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WindowsFormHello/Properties/Resources.Designer.cs b/WindowsFormHello/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..c4adada
--- /dev/null
+++ b/WindowsFormHello/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本: 4.0.30319.42000
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace WindowsFormHello.Properties
+{
+
+
+ ///
+ /// 强类型资源类,用于查找本地化字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// 返回此类使用的缓存 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormHello.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 覆盖当前线程的 CurrentUICulture 属性
+ /// 使用此强类型的资源类的资源查找。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/WindowsFormHello/Properties/Resources.resx b/WindowsFormHello/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/WindowsFormHello/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/WindowsFormHello/Properties/Settings.Designer.cs b/WindowsFormHello/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..325cf0e
--- /dev/null
+++ b/WindowsFormHello/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WindowsFormHello.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/WindowsFormHello/Properties/Settings.settings b/WindowsFormHello/Properties/Settings.settings
new file mode 100644
index 0000000..3964565
--- /dev/null
+++ b/WindowsFormHello/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/WindowsFormHello/ShowMessageViewModel.cs b/WindowsFormHello/ShowMessageViewModel.cs
new file mode 100644
index 0000000..3f83acc
--- /dev/null
+++ b/WindowsFormHello/ShowMessageViewModel.cs
@@ -0,0 +1,6 @@
+namespace WindowsFormHello
+{
+ public class ShowMessageViewModel
+ {
+ }
+}
\ No newline at end of file
diff --git a/WindowsFormHello/WindowsFormHello.csproj b/WindowsFormHello/WindowsFormHello.csproj
new file mode 100644
index 0000000..dfee98d
--- /dev/null
+++ b/WindowsFormHello/WindowsFormHello.csproj
@@ -0,0 +1,100 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {C78382F7-8961-475D-AB7B-DF9FA21CA80A}
+ WinExe
+ WindowsFormHello
+ WindowsFormHello
+ v4.7.2
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\packages\EcoCore.7.0.0.12229\lib\net40\Eco.Handles.dll
+
+
+ ..\packages\EcoCore.7.0.0.12229\lib\net40\Eco.Interfaces.dll
+
+
+ ..\packages\EcoCore.7.0.0.12229\lib\net40\Eco.LinqExtender.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.cs
+
+
+
+
+
+ Form1.cs
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+
+
+
+ {916be9f3-0939-4f04-a63b-7eb6b84508c3}
+ DependencyInjection
+
+
+
+
\ No newline at end of file
diff --git a/WindowsFormHello/packages.config b/WindowsFormHello/packages.config
new file mode 100644
index 0000000..8e4933d
--- /dev/null
+++ b/WindowsFormHello/packages.config
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
--
Gitee