• 大小: 380KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: C#
  • 标签: c#  串口  

资源简介

1.基于vs2010,c#串口。 2.支持热插拔。 3.支持保存接收文件txt格式,可与单片机串口连接发送数据。 4.窗口状态栏显示。 5.登陆界面 6.显示汉字

资源截图

代码片段和文件信息

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
        {
  

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

     文件        382  2016-10-11 16:37  TEST\obj\x86\Debug\GenerateResource.read.114.tlog

     文件        910  2016-10-11 16:36  TEST\obj\x86\Debug\GenerateResource.read.116.tlog

     文件        382  2016-10-11 16:35  TEST\obj\x86\Debug\GenerateResource.read.117.tlog

     文件        382  2016-10-11 16:37  TEST\obj\x86\Debug\GenerateResource.read.118.tlog

     文件        758  2016-10-11 16:31  TEST\obj\x86\Debug\GenerateResource.read.78.tlog

     文件        762  2016-10-11 16:35  TEST\obj\x86\Debug\GenerateResource.read.95.tlog

     文件        740  2016-10-11 16:36  TEST\obj\x86\Debug\GenerateResource.read.98.tlog

     文件        458  2016-10-11 16:37  TEST\obj\x86\Debug\GenerateResource.write.118.tlog

     文件        458  2016-10-11 16:40  TEST\obj\x86\Debug\GenerateResource.write.136.tlog

     文件        458  2016-10-11 16:35  TEST\obj\x86\Debug\GenerateResource.write.95.tlog

     文件         70  2017-10-19 09:56  TEST\readme.txt

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

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

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

     文件     110592  2017-10-19 15:13  TEST\TEST\bin\Debug\TEST.exe

     文件      44544  2017-10-19 15:13  TEST\TEST\bin\Debug\TEST.pdb

     文件      11600  2017-10-19 15:20  TEST\TEST\bin\Debug\TEST.vshost.exe

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

     文件       1737  2017-08-07 10:39  TEST\TEST\Form1.cs

     文件       7746  2017-08-02 17:15  TEST\TEST\Form1.Designer.cs

     文件     116871  2017-08-02 17:15  TEST\TEST\Form1.resx

     文件       4501  2017-08-04 10:59  TEST\TEST\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6662  2017-10-19 15:20  TEST\TEST\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       6086  2017-10-19 14:28  TEST\TEST\obj\x86\Debug\GenerateResource.read.1.tlog

     文件      12104  2017-10-19 14:28  TEST\TEST\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       9541  2017-08-08 14:43  TEST\TEST\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       8925  2017-10-19 15:20  TEST\TEST\obj\x86\Debug\TEST.csproj.FileListAbsolute.txt

     文件       1096  2016-11-14 22:12  TEST\TEST\obj\x86\Debug\TEST.csproj.GenerateResource.Cache

     文件     110592  2017-10-19 15:13  TEST\TEST\obj\x86\Debug\TEST.exe

     文件      74357  2017-10-19 14:28  TEST\TEST\obj\x86\Debug\TEST.Form1.resources

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

评论

共有 条评论