资源简介

该工具主要完成一下工作: ************************************************************** 1.自动分割数据包,在编辑框中,输入要发送的数据包,该软件智能将包个数显示出来, 手动发送,则每一次只发一包,接着发送第二包,到第三包。。。 2 保存上次的串口配置信息(经过一晚上思考和多次重复的实验, 终于写好了读写Xml部分),可以自动保存上次的Com口配置信息。 3.保存上次发送的数据包信息(主要是读写txt文本,加载上次要发送的文本,已经按照樊工要求实现) 4.可以按照指定的时间,自动发送,从第一包,发送到最后一包,然后结束。

资源截图

代码片段和文件信息

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

namespace test2
{
    partial class AboutBoxThisSoftWare : Form
    {
        public AboutBoxThisSoftWare()
        {
            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 Assem

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

     文件         86  2011-07-03 00:43  C#\readme.txt

     文件       9662  2011-05-16 22:18  C#\test2\20110516101604841.ico

     文件       3560  2011-06-20 11:53  C#\test2\AboutBox1.cs

     文件      10920  2011-05-19 19:08  C#\test2\AboutBox1.Designer.cs

     文件     966725  2011-05-19 19:08  C#\test2\AboutBox1.resx

     文件       1406  2011-06-20 11:53  C#\test2\amazon.ico

     文件        848  2011-06-20 11:57  C#\test2\app.config

     文件        220  2011-07-03 00:41  C#\test2\bin\Debug\config.xml

     文件        226  2011-06-20 18:24  C#\test2\bin\Debug\config.xml.bak

     文件         64  2011-06-20 18:34  C#\test2\bin\Debug\dataSend.txt

     文件     677376  2011-06-21 06:28  C#\test2\bin\Debug\test2.exe

     文件        848  2011-06-20 11:57  C#\test2\bin\Debug\test2.exe.config

     文件      67072  2011-06-21 06:28  C#\test2\bin\Debug\test2.pdb

     文件      11608  2011-06-21 23:48  C#\test2\bin\Debug\test2.vshost.exe

     文件        848  2011-06-20 11:57  C#\test2\bin\Debug\test2.vshost.exe.config

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

     文件     684544  2011-06-17 18:06  C#\test2\bin\Release\test2.exe

     文件        810  2011-05-12 13:09  C#\test2\bin\Release\test2.exe.config

     文件      48640  2011-06-17 18:06  C#\test2\bin\Release\test2.pdb

     文件      11600  2011-06-17 18:08  C#\test2\bin\Release\test2.vshost.exe

     文件        810  2011-05-12 13:09  C#\test2\bin\Release\test2.vshost.exe.config

     文件       9010  2011-06-21 06:23  C#\test2\ConfigPort.cs

     文件      26597  2011-06-21 06:28  C#\test2\Form1.cs

     文件      20519  2011-06-20 22:14  C#\test2\Form1.Designer.cs

     文件       9011  2011-06-20 22:14  C#\test2\Form1.resx

     文件       4440  2011-05-13 06:41  C#\test2\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6133  2011-06-21 06:28  C#\test2\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1516  2011-06-21 06:26  C#\test2\obj\x86\Debug\GenerateResource-ResGen.read.1.tlog

     文件          2  2011-06-21 06:26  C#\test2\obj\x86\Debug\GenerateResource-ResGen.read.7.tlog

     文件       1088  2011-06-21 06:26  C#\test2\obj\x86\Debug\GenerateResource-ResGen.write.1.tlog

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

评论

共有 条评论