资源简介

C#编写的CRC16的校验程序,简单的计算方式希望对需要的人有所帮助

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.IO;
using System.Threading;

namespace CRC16
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = “文本文档.txt|*.txt|二进制.bin|*.bin|所有文件|*.*“;

            if (ofd.CheckPathExists)//检查路径是否存在
            {
                if (ofd.CheckFileExists)//检查文件是否存在
                {
                    if (ofd.ValidateNames)//检查是否有效Win32

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

     文件     147968  2011-07-14 13:21  CRC16\CRC16\bin\CRC16file\CRC16.exe

     文件      28160  2011-07-14 13:21  CRC16\CRC16\bin\CRC16file\CRC16.pdb

     文件      11600  2011-07-14 13:21  CRC16\CRC16\bin\CRC16file\CRC16.vshost.exe

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

     文件     147968  2012-01-16 09:31  CRC16\CRC16\bin\Debug\CRC16.exe

     文件      28160  2012-01-16 09:31  CRC16\CRC16\bin\Debug\CRC16.pdb

     文件      11600  2012-02-10 11:41  CRC16\CRC16\bin\Debug\CRC16.vshost.exe

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

     文件       3830  2011-07-13 10:54  CRC16\CRC16\CRC16.csproj

     文件       6580  2011-12-30 09:24  CRC16\CRC16\Form1.cs

     文件       4474  2011-07-13 11:06  CRC16\CRC16\Form1.Designer.cs

     文件     107589  2011-07-13 11:06  CRC16\CRC16\Form1.resx

     文件        568  2012-02-10 11:41  CRC16\CRC16\obj\x86\Debug\CRC16.csproj.FileListAbsolute.txt

     文件     147968  2012-01-16 09:31  CRC16\CRC16\obj\x86\Debug\CRC16.exe

     文件      68212  2012-01-16 09:31  CRC16\CRC16\obj\x86\Debug\CRC16.Form1.resources

     文件      28160  2012-01-16 09:31  CRC16\CRC16\obj\x86\Debug\CRC16.pdb

     文件        180  2011-07-13 10:54  CRC16\CRC16\obj\x86\Debug\CRC16.Properties.Resources.resources

     文件       4440  2011-07-14 10:41  CRC16\CRC16\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6226  2012-02-10 11:40  CRC16\CRC16\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        246  2012-01-16 09:31  CRC16\CRC16\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        450  2012-01-16 09:31  CRC16\CRC16\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       7897  2011-07-14 13:20  CRC16\CRC16\obj\x86\Debug\ResolveAssemblyReference.cache

     文件        486  2011-07-13 09:37  CRC16\CRC16\Program.cs

     文件       1366  2011-07-13 09:37  CRC16\CRC16\Properties\AssemblyInfo.cs

     文件       2860  2011-07-13 09:37  CRC16\CRC16\Properties\Resources.Designer.cs

     文件       5612  2011-07-13 09:37  CRC16\CRC16\Properties\Resources.resx

     文件       1090  2011-07-13 09:37  CRC16\CRC16\Properties\Settings.Designer.cs

     文件        249  2011-07-13 09:37  CRC16\CRC16\Properties\Settings.settings

     文件      67646  2011-07-13 10:52  CRC16\CRC16\图标3.ico

     文件        857  2011-07-13 09:37  CRC16\CRC16.sln

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

评论

共有 条评论