资源简介
c#编写串口通讯代码 多线程实现 对串口通信测试具有极大的参考价值

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;
namespace Termie
{
partial class AboutBox : Form
{
public AboutBox()
{
InitializeComponent();
// Initialize the AboutBox to display the product information from the assembly information.
// Change assembly information settings for your application through either:
// - Project->Properties->Application->Assembly Information
// - AssemblyInfo.cs
this.Text = String.Format(“About {0}“ Assemblytitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format(“Version {0}“ AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
}
#region Assembly Attribute Accessors
public string Assemblytitle
{
get
{
// Get all title attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
// If there is at least one title attribute
if (attributes.Length > 0)
{
// Select the first one
AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
// If it is not an empty string return it
if (titleAttribute.title != ““)
return titleAttribute.title;
}
// If there was no title attribute or if the title attribute was the empty string return the .exe name
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
public string AssemblyDescription
{
get
{
// Get all Description attributes on this assembly
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
// If there aren‘t any Description attributes return an empty string
if (attributes.Length == 0)
return ““;
// If there is a Description attribute return its value
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
// Get all P
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4879 2008-02-15 11:57 c#编写串口通讯代码 多线程实现\AboutBox.cs
文件 10533 2008-02-15 11:58 c#编写串口通讯代码 多线程实现\AboutBox.Designer.cs
文件 49720 2008-02-15 11:58 c#编写串口通讯代码 多线程实现\AboutBox.resx
文件 153600 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\bin\Debug\Termie.exe
文件 214 2015-12-30 09:30 c#编写串口通讯代码 多线程实现\bin\Debug\Termie.ini
文件 73216 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\bin\Debug\Termie.pdb
文件 22704 2015-12-30 10:24 c#编写串口通讯代码 多线程实现\bin\Debug\Termie.vshost.exe
文件 490 2013-03-18 17:00 c#编写串口通讯代码 多线程实现\bin\Debug\Termie.vshost.exe.manifest
文件 6488 2008-10-13 16:07 c#编写串口通讯代码 多线程实现\CommPort.cs
文件 17722 2008-10-13 16:05 c#编写串口通讯代码 多线程实现\Form1.cs
文件 30824 2008-10-13 16:05 c#编写串口通讯代码 多线程实现\Form1.Designer.cs
文件 5814 2008-10-13 16:05 c#编写串口通讯代码 多线程实现\Form1.resx
文件 5300 2008-05-29 09:13 c#编写串口通讯代码 多线程实现\Form2.cs
文件 15765 2008-05-29 09:09 c#编写串口通讯代码 多线程实现\Form2.Designer.cs
文件 5814 2008-05-29 09:09 c#编写串口通讯代码 多线程实现\Form2.resx
文件 1619 2008-02-20 10:50 c#编写串口通讯代码 多线程实现\IniFile.cs
文件 1469 2008-02-15 11:44 c#编写串口通讯代码 多线程实现\license.txt
文件 791 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6964 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 4608 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 29192 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.AboutBox.resources
文件 1085 2015-12-30 10:24 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.csproj.FileListAbsolute.txt
文件 966 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.csproj.GenerateResource.Cache
文件 1588 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.csprojResolveAssemblyReference.cache
文件 153600 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.exe
文件 180 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.Form1.resources
文件 180 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.Form2.resources
文件 73216 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.pdb
文件 180 2015-12-30 09:29 c#编写串口通讯代码 多线程实现\obj\Debug\Termie.Properties.Resources.resources
文件 498 2008-02-15 10:03 c#编写串口通讯代码 多线程实现\Program.cs
............此处省略20个文件信息
- 上一篇:c#窗体应用程序实现数据库增删改查
- 下一篇:C#串口获取GPS信息
相关资源
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- c#小型图书销售系统
- C# 使用ListView控件实现图片浏览器(源
- c# 高校档案信息管理系统
- asp.net中c#做的躲避小游戏,希望大家
- ASP.NET C# 工资管理系统
- 一款漂亮的灯光闪烁的圣诞树(C# V
- C#笔试题大全C#面试集合包括了,.ne
- ASP.NET客户管理系统(毕业设计 C#
- 在线求职系统(C#ASP.NET源码)
- .NET C# Custom Form Designer (附源碼)
- C#冒泡排序动态演示程序(看了就会)
- 酒店管理系统(c#.net源码)
- C#串口通信程序(VS2010)(serialPort组
- OpenCVSharp文字区域识别
- AssetStudio V0.16.0 源代码 使用VS2019
- VS开发S7-1200PLC上位机软件(案例源码
- VS2019图书管理系统-C#
- asp.net 在线考试系统及论文
- winform实时获取网卡网速全部源码,获
- ASP.Net文件上传管理源码
- opencvsharp检测圆
- 输入框自动切换中文(C#winform)vs20
- ArcGIS Runtime SDK for .NET
- C# .NET5.0(net core)基于WPF(XAML)开发
- Quartz.NET定时任务框架
- C# 斑马手持终端WINCE开发 MC32N0 vs2008
- .net core 动态生成 Word文档(word Expor
- indentguide V14 for VS2012(.vsix)
评论
共有 条评论