First in 202205060145
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FormDemo
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
MyForm MainForm = new MyForm("Main Waindow");
|
||||
MainForm.ShowDialog();
|
||||
}
|
||||
}
|
||||
class MyForm : Form
|
||||
{
|
||||
private Button NewButton;
|
||||
private TextBox Output;
|
||||
public MyForm(string FormName)
|
||||
{
|
||||
Form NewForm = new Form();
|
||||
this.Text= FormName;
|
||||
this.Output=new TextBox();
|
||||
this.NewButton = new Button();
|
||||
this.Controls.Add(this.NewButton);
|
||||
this.Controls.Add(this.Output);
|
||||
this.NewButton.Text = "ShowHello";
|
||||
this.NewButton.Top = 20;
|
||||
this.NewButton.Click += ButtonClicked;
|
||||
|
||||
}
|
||||
|
||||
private void ButtonClicked(object sender, EventArgs e)
|
||||
{
|
||||
this.Output.Text = "Hello World";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?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>{26B67F06-5B9B-4B06-BFAA-FCCF9A11D391}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Project1</RootNamespace>
|
||||
<AssemblyName>FormDemo</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.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>
|
||||
<PropertyGroup>
|
||||
<StartupObject>FormDemo.Program</StartupObject>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Windows" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="NewFolder1\CodeFile1.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
53d736cea3461863c247af0cb99304dfd8a84069
|
||||
@@ -0,0 +1,8 @@
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\obj\Debug\Project1.csproj.AssemblyReference.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\obj\Debug\Project1.csproj.SuggestedBindingRedirects.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\obj\Debug\Project1.csproj.CoreCompileInputs.cache
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\bin\Debug\FormDemo.exe.config
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\bin\Debug\FormDemo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\bin\Debug\FormDemo.pdb
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\obj\Debug\FormDemo.exe
|
||||
D:\荷城工业\研究项目\1-旗舰级\东方同人TH2020\工程\源代码\Demo\Project1\obj\Debug\FormDemo.pdb
|
||||
Reference in New Issue
Block a user