• 大小: 0.05M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签:

资源简介

C#画出一棵树(主要应用递归算法)

资源截图

代码片段和文件信息

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 DrawTrees
{
    public partial class Form1 : Form
    {      
        public Form1()
        {
            this.AutoScalebaseSize = new Size(6 14);//窗体自动缩放
            this.ClientSize = new Size(400 400);// clientsize是工作区的宽度和高度去掉border和标题栏的宽度
            this.Paint += new PaintEventHandler(this.Form1_Paint);
            this.Click += new EventHandler(this.Redraw);//多值化,点击鼠标后重新画数
            InitializeComponent();
        }

        private void Form1_Paint(object sender PaintEventArgs e)
        {
            graphics = e.Graphics;//实例化图形设备

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     48128  2017-04-15 17:40  DrawTrees\.vs\DrawTrees\v14\.suo

     文件        189  2017-04-05 15:51  DrawTrees\DrawTrees\App.config

     文件      11776  2017-04-15 17:13  DrawTrees\DrawTrees\bin\Debug\DrawTrees.exe

     文件        189  2017-04-05 15:51  DrawTrees\DrawTrees\bin\Debug\DrawTrees.exe.config

     文件      24064  2017-04-15 17:13  DrawTrees\DrawTrees\bin\Debug\DrawTrees.pdb

     文件      22696  2017-04-15 17:14  DrawTrees\DrawTrees\bin\Debug\DrawTrees.vshost.exe

     文件        189  2017-04-05 15:51  DrawTrees\DrawTrees\bin\Debug\DrawTrees.vshost.exe.config

     文件       3916  2017-04-15 15:32  DrawTrees\DrawTrees\DrawTrees.csproj

     文件       3713  2017-04-15 17:13  DrawTrees\DrawTrees\Form1.cs

     文件       7731  2017-04-15 17:13  DrawTrees\DrawTrees\Form1.Designer.cs

     文件       5817  2017-04-15 17:13  DrawTrees\DrawTrees\Form1.resx

     文件       1464  2017-04-12 16:49  DrawTrees\DrawTrees\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7361  2017-04-15 15:32  DrawTrees\DrawTrees\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1149  2017-04-15 17:14  DrawTrees\DrawTrees\obj\Debug\DrawTrees.csproj.FileListAbsolute.txt

     文件       1070  2017-04-15 17:13  DrawTrees\DrawTrees\obj\Debug\DrawTrees.csproj.GenerateResource.Cache

     文件       2384  2017-04-05 16:36  DrawTrees\DrawTrees\obj\Debug\DrawTrees.csprojResolveAssemblyReference.cache

     文件      11776  2017-04-15 17:13  DrawTrees\DrawTrees\obj\Debug\DrawTrees.exe

     文件        180  2017-04-15 17:13  DrawTrees\DrawTrees\obj\Debug\DrawTrees.Form1.resources

     文件      24064  2017-04-15 17:13  DrawTrees\DrawTrees\obj\Debug\DrawTrees.pdb

     文件        180  2017-04-15 15:32  DrawTrees\DrawTrees\obj\Debug\DrawTrees.Properties.Resources.resources

     文件          0  2017-04-05 15:51  DrawTrees\DrawTrees\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2017-04-05 15:51  DrawTrees\DrawTrees\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2017-04-05 15:51  DrawTrees\DrawTrees\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        532  2017-04-05 15:51  DrawTrees\DrawTrees\Program.cs

     文件       1430  2017-04-05 15:51  DrawTrees\DrawTrees\Properties\AssemblyInfo.cs

     文件       2848  2017-04-05 15:51  DrawTrees\DrawTrees\Properties\Resources.Designer.cs

     文件       5612  2017-04-05 15:51  DrawTrees\DrawTrees\Properties\Resources.resx

     文件       1096  2017-04-05 15:51  DrawTrees\DrawTrees\Properties\Settings.Designer.cs

     文件        249  2017-04-05 15:51  DrawTrees\DrawTrees\Properties\Settings.settings

     文件        994  2017-04-05 15:51  DrawTrees\DrawTrees.sln

............此处省略15个文件信息

评论

共有 条评论

相关资源