• 大小: 536KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: C#
  • 标签: vs  graphics  坐标系  

资源简介

vs2010 利用graphics绘制坐标系 完整的工程

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace TEST
{
    partial class AboutBox1 : Form
    {
        public AboutBox1()
        {
            InitializeComponent();
            this.Text = String.Format(“关于 {0}“ Assemblytitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
            this.labelCopyright.Text = AssemblyCopyright;
            this.labelCompanyName.Text = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
        }

        #region 程序集特性访问器

        public string Assemblytitle
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                if (attributes.Length > 0)
                {
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    if (titleAttribute.title != ““)
                    {
                        return titleAttribute.title;
                    }
                }
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyProductAttribute)attributes[0]).Product;
            }
        }

        public string AssemblyCopyright
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }
        }

        public string AssemblyCompany
        {
  

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

     文件        119  2017-03-28 15:41  AXES\numxy.txt

     文件       3436  2016-08-02 15:50  AXES\TEST\AboutBox1.cs

     文件      10445  2016-08-02 15:50  AXES\TEST\AboutBox1.Designer.cs

     文件      49529  2016-08-02 15:50  AXES\TEST\AboutBox1.resx

     文件      53248  2012-07-12 17:09  AXES\TEST\bin\Debug\ControlCAN.dll

     文件     131584  2017-04-01 14:35  AXES\TEST\bin\Debug\TEST.exe

     文件      38400  2017-04-01 14:35  AXES\TEST\bin\Debug\TEST.pdb

     文件      11600  2017-04-10 14:01  AXES\TEST\bin\Debug\TEST.vshost.exe

     文件        490  2010-03-17 22:39  AXES\TEST\bin\Debug\TEST.vshost.exe.manifest

     文件      11542  2017-03-28 16:39  AXES\TEST\Form1.cs

     文件      15457  2017-03-28 16:39  AXES\TEST\Form1.Designer.cs

     文件       6188  2017-03-28 16:39  AXES\TEST\Form1.resx

     文件        563  2017-03-28 14:37  AXES\TEST\Form2.cs

     文件       3386  2017-03-28 14:37  AXES\TEST\Form2.Designer.cs

     文件     172910  2017-03-28 14:37  AXES\TEST\Form2.resx

     文件       4501  2017-03-28 12:56  AXES\TEST\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6284  2017-04-01 14:35  AXES\TEST\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2108  2017-03-28 16:39  AXES\TEST\obj\x86\Debug\GenerateResource.read.1.tlog

     文件       4438  2017-03-28 16:39  AXES\TEST\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       8031  2016-07-27 11:29  AXES\TEST\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       4490  2017-04-10 14:01  AXES\TEST\obj\x86\Debug\TEST.csproj.FileListAbsolute.txt

     文件       1033  2017-03-27 21:04  AXES\TEST\obj\x86\Debug\TEST.csproj.GenerateResource.Cache

     文件     131584  2017-04-01 14:35  AXES\TEST\obj\x86\Debug\TEST.exe

     文件        180  2017-03-28 16:39  AXES\TEST\obj\x86\Debug\TEST.Form1.resources

     文件     111959  2017-03-28 14:37  AXES\TEST\obj\x86\Debug\TEST.Form2.resources

     文件      38400  2017-04-01 14:35  AXES\TEST\obj\x86\Debug\TEST.pdb

     文件        180  2017-03-28 09:16  AXES\TEST\obj\x86\Debug\TEST.Properties.Resources.resources

     文件        485  2016-07-26 20:53  AXES\TEST\Program.cs

     文件       1358  2016-07-26 20:53  AXES\TEST\Properties\AssemblyInfo.cs

     文件       2860  2016-07-26 20:53  AXES\TEST\Properties\Resources.Designer.cs

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

评论

共有 条评论