• 大小: 0.22M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: C#  通讯  串口  

资源简介


资源截图

代码片段和文件信息

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.Threading;
using ChuanKou.Common;
using System.IO.Ports;
using System.Net;
using System.Net.Sockets;

namespace ChuanKou
{
    public partial class Form1 : Form
    {
        #region 初始化

        Socket socket = null; //服务器套接字
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            #region 串口
            string[] portNames = SerialPort.GetPortNames();
            for (int i = 0; i < portNames.Length; i++)
            {
                this.cbbDKH.Items.Add(portN

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-18 10:24  sms\
     目录           0  2015-07-18 10:31  sms\ChuanKou\
     目录           0  2015-07-16 11:49  sms\ChuanKou\bin\
     目录           0  2015-07-18 10:31  sms\ChuanKou\bin\Debug\
     文件       52736  2015-07-18 10:31  sms\ChuanKou\bin\Debug\ChuanKou.exe
     文件       38400  2015-07-18 10:31  sms\ChuanKou\bin\Debug\ChuanKou.pdb
     文件       14328  2015-07-18 10:31  sms\ChuanKou\bin\Debug\ChuanKou.vshost.exe
     文件         490  2009-06-11 05:14  sms\ChuanKou\bin\Debug\ChuanKou.vshost.exe.manifest
     文件        3897  2015-07-16 16:10  sms\ChuanKou\ChuanKou.csproj
     目录           0  2015-07-16 14:03  sms\ChuanKou\Common\
     文件        2199  2015-07-16 14:03  sms\ChuanKou\Common\PortCommon.cs
     文件        8737  2015-07-18 10:31  sms\ChuanKou\Form1.cs
     文件       30030  2015-07-18 10:31  sms\ChuanKou\Form1.Designer.cs
     文件       51572  2015-07-16 16:45  sms\ChuanKou\Form1.resx
     目录           0  2015-07-16 09:41  sms\ChuanKou\obj\
     目录           0  2015-07-18 10:31  sms\ChuanKou\obj\Debug\
     文件        1214  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.csproj.FileListAbsolute.txt
     文件         847  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.csproj.GenerateResource.Cache
     文件       52736  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.exe
     文件       30492  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.Form1.resources
     文件       38400  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.pdb
     文件         180  2015-07-18 10:31  sms\ChuanKou\obj\Debug\ChuanKou.Properties.Resources.resources
     目录           0  2015-07-16 09:44  sms\ChuanKou\obj\Debug\Refactor\
     目录           0  2015-07-16 09:41  sms\ChuanKou\obj\Debug\TempPE\
     文件         489  2015-07-16 09:41  sms\ChuanKou\Program.cs
     目录           0  2015-07-16 09:41  sms\ChuanKou\Properties\
     文件        1366  2015-07-16 09:41  sms\ChuanKou\Properties\AssemblyInfo.cs
     文件        2866  2015-07-16 09:41  sms\ChuanKou\Properties\Resources.Designer.cs
     文件        5612  2015-07-16 09:41  sms\ChuanKou\Properties\Resources.resx
     文件        1093  2015-07-16 09:41  sms\ChuanKou\Properties\Settings.Designer.cs
     文件         249  2015-07-16 09:41  sms\ChuanKou\Properties\Settings.settings
............此处省略61个文件信息

评论

共有 条评论