亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.cs

?? Wince Comport test CE串口標準組件
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices;  
using Microsoft.WindowsCE.Forms;  

namespace COMTest
{



	/// <summary>
	/// Form1 的摘要說明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.ComboBox comboBox1;
		private System.Windows.Forms.ComboBox comboBox2;
		private System.Windows.Forms.ComboBox comboBox3;
		private System.Windows.Forms.ComboBox comboBox4;
		private System.Windows.Forms.ComboBox comboBox5;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.ListBox listBox1;
		private System.Windows.Forms.Button button4;


		#region 串口變量定義
			const uint COM_SINGLEFRAME=4096;
			const uint COM_FRAMECOUNT=16;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
			const uint WM_COMUSERDEFINE=0x0501;


			enum COM_NO{COM1=0,COM2,COM3,COM4,COM5,COM6,COM7,COM8,COM9};
			enum COM_StopBits{COM_StopBits_1=0,COM_StopBits_1_5,COM_StopBits_2};
			enum COM_ByteSize{COM_ByteSize_5=0, COM_ByteSize_6, COM_ByteSize_7, COM_ByteSize_8};
			enum COM_Parity{COM_Parity_None=0, COM_Parity_Odd, COM_Parity_Even, COM_Parity_Mark, COM_Parity_Space};
			enum COM_Baudrate{COM_Baudrate_110=0,COM_Baudrate_300,COM_Baudrate_600,COM_Baudrate_1200,COM_Baudrate_2400,COM_Baudrate_4800,COM_Baudrate_9600,COM_Baudrate_19200,COM_Baudrate_38400,COM_Baudrate_57600,COM_Baudrate_115200};
			enum THREAD_PRIORITY{PRIORITY_TIME_CRITICAL=0,PRIORITY_HIGHEST,PRIORITY_ABOVE_NORMAL,PRIORITY_NORMAL,PRIORITY_BELOW_NORMAL,PRIORITY_LOWEST,PRIORITY_ABOVE_IDLE,PRIORITY_IDLE};


			[DllImport("COMPort.dll",CallingConvention=CallingConvention.Winapi)]
			static extern IntPtr COMPort_Init(
				COM_NO comNo,
				COM_Baudrate BaudRate,
				COM_Parity Parity,
				COM_ByteSize ByteSize,
				COM_StopBits StopBits,
				uint FrameCount,
				uint SingleFrameLength,
				THREAD_PRIORITY SendThreadPriority,
				THREAD_PRIORITY RecvThreadPriority,
				uint WM_USERDEFINE,
				IntPtr MainHWnd
			); 
			
		[DllImport("COMPort.dll",CallingConvention=CallingConvention.Winapi)]
		static extern void COMPort_DeInit(IntPtr ComPointer);

		[DllImport("COMPort.dll",CallingConvention=CallingConvention.Winapi)]
		static extern void COMPort_SendByte(IntPtr ComPointer,byte[] Data,uint DataLen);
			
		[DllImport("COMPort.dll",CallingConvention=CallingConvention.Winapi)]
		static extern void COMPort_RecvByte(IntPtr ComPointer,byte[] Data,ref uint DataLen);

		#endregion 串口變量定義

		myMessageWindow MMW=null;
		byte[] CurrentByte=new byte[COM_SINGLEFRAME*COM_FRAMECOUNT];
		uint AllCount=0;

		IntPtr ComPointer=IntPtr.Zero; 


		public Form1()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}
		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}
		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.button1 = new System.Windows.Forms.Button();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.comboBox2 = new System.Windows.Forms.ComboBox();
			this.comboBox3 = new System.Windows.Forms.ComboBox();
			this.comboBox4 = new System.Windows.Forms.ComboBox();
			this.comboBox5 = new System.Windows.Forms.ComboBox();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.button4 = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(8, 56);
			this.button1.Size = new System.Drawing.Size(88, 32);
			this.button1.Text = "打開串口";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// comboBox1
			// 
			this.comboBox1.Items.Add("COM1");
			this.comboBox1.Items.Add("COM2");
			this.comboBox1.Items.Add("COM3");
			this.comboBox1.Items.Add("COM4");
			this.comboBox1.Items.Add("COM5");
			this.comboBox1.Items.Add("COM6");
			this.comboBox1.Items.Add("COM7");
			this.comboBox1.Items.Add("COM8");
			this.comboBox1.Items.Add("COM9");
			this.comboBox1.Location = new System.Drawing.Point(8, 16);
			this.comboBox1.Size = new System.Drawing.Size(64, 20);
			// 
			// comboBox2
			// 
			this.comboBox2.Items.Add("110");
			this.comboBox2.Items.Add("300");
			this.comboBox2.Items.Add("600");
			this.comboBox2.Items.Add("1200");
			this.comboBox2.Items.Add("2400");
			this.comboBox2.Items.Add("4800");
			this.comboBox2.Items.Add("9600");
			this.comboBox2.Items.Add("19200");
			this.comboBox2.Items.Add("38400");
			this.comboBox2.Items.Add("57600");
			this.comboBox2.Items.Add("115200");
			this.comboBox2.Location = new System.Drawing.Point(88, 16);
			this.comboBox2.Size = new System.Drawing.Size(64, 20);
			// 
			// comboBox3
			// 
			this.comboBox3.Items.Add("None");
			this.comboBox3.Items.Add("ODD");
			this.comboBox3.Items.Add("Even");
			this.comboBox3.Items.Add("Mark");
			this.comboBox3.Items.Add("Space");
			this.comboBox3.Location = new System.Drawing.Point(168, 16);
			this.comboBox3.Size = new System.Drawing.Size(64, 20);
			// 
			// comboBox4
			// 
			this.comboBox4.Items.Add("5");
			this.comboBox4.Items.Add("6");
			this.comboBox4.Items.Add("7");
			this.comboBox4.Items.Add("8");
			this.comboBox4.Location = new System.Drawing.Point(240, 16);
			this.comboBox4.Size = new System.Drawing.Size(64, 20);
			// 
			// comboBox5
			// 
			this.comboBox5.Items.Add("1");
			this.comboBox5.Items.Add("1.5");
			this.comboBox5.Items.Add("2");
			this.comboBox5.Location = new System.Drawing.Point(320, 16);
			this.comboBox5.Size = new System.Drawing.Size(64, 20);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(104, 56);
			this.button2.Size = new System.Drawing.Size(64, 32);
			this.button2.Text = "關閉串口";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(176, 56);
			this.button3.Size = new System.Drawing.Size(80, 32);
			this.button3.Text = "發送數據";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(272, 64);
			this.textBox1.Size = new System.Drawing.Size(40, 21);
			this.textBox1.Text = "255";
			// 
			// listBox1
			// 
			this.listBox1.Location = new System.Drawing.Point(8, 96);
			this.listBox1.Size = new System.Drawing.Size(544, 278);
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(344, 56);
			this.button4.Size = new System.Drawing.Size(72, 32);
			this.button4.Text = "clear";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(440, 24);
			this.label1.Size = new System.Drawing.Size(112, 20);
			this.label1.Text = "Clear以后總個數";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(440, 64);
			this.label2.Text = "0";
			// 
			// Form1
			// 
			this.ClientSize = new System.Drawing.Size(562, 384);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.listBox1);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.comboBox5);
			this.Controls.Add(this.comboBox4);
			this.Controls.Add(this.comboBox3);
			this.Controls.Add(this.comboBox2);
			this.Controls.Add(this.comboBox1);
			this.Controls.Add(this.button1);
			this.Text = "串口測試";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
			this.Load += new System.EventHandler(this.Form1_Load);

		}
		#endregion

		/// <summary>
		/// 應用程序的主入口點。
		/// </summary>

		static void Main() 
		{
			Application.Run(new Form1());
		}



		private void Form1_Load(object sender, System.EventArgs e)
		{
			this.comboBox1.SelectedIndex=0;  //com1
			this.comboBox2.SelectedIndex=6;  //9600
			this.comboBox3.SelectedIndex=0;  //None
			this.comboBox4.SelectedIndex=3;  //8
			this.comboBox5.SelectedIndex=0;  //1
			//得到自己的接受消息的窗口
			this.MMW=new myMessageWindow(this); 


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩av亚洲一区二区图片| 色婷婷激情久久| 99久久精品国产网站| 欧美日本在线一区| 国产精品进线69影院| 蜜桃视频第一区免费观看| av福利精品导航| 久久久久久久久久美女| 午夜精品久久久久久久蜜桃app| 国产精品综合在线视频| 欧美欧美欧美欧美| 亚洲欧洲中文日韩久久av乱码| 免费欧美在线视频| 欧美影视一区二区三区| 欧美国产日韩a欧美在线观看| 日韩电影在线一区| 欧美三级电影网| 亚洲色图另类专区| 99国产精品国产精品毛片| 久久精品人人做人人综合| 蜜臀va亚洲va欧美va天堂| 欧美高清精品3d| 亚洲电影视频在线| 欧美性色黄大片| 一区二区三区欧美| 色综合一区二区三区| 尤物在线观看一区| 岛国av在线一区| 国产日韩欧美不卡在线| 国产一区在线不卡| 精品粉嫩超白一线天av| 久久机这里只有精品| 日韩一二三四区| 免费在线观看精品| 精品久久人人做人人爽| 激情深爱一区二区| 久久香蕉国产线看观看99| 国产精品99久| 国产精品欧美精品| 99re亚洲国产精品| 一区二区三区欧美在线观看| 欧美三区在线观看| 日本最新不卡在线| 亚洲精品一区二区三区蜜桃下载 | 久久综合久久综合久久综合| 精品一区二区综合| 久久久精品国产99久久精品芒果 | 午夜日韩在线电影| 欧美久久久一区| 久久不见久久见免费视频7| 久久精品男人天堂av| 国产成人精品亚洲日本在线桃色 | 国v精品久久久网| 综合中文字幕亚洲| 欧美日韩午夜在线| 久久国产综合精品| 综合久久久久综合| 欧美三级日韩三级| 精品亚洲国内自在自线福利| 国产蜜臀97一区二区三区| www.成人网.com| 日韩av一区二区三区| 久久久国产午夜精品| 日本高清不卡视频| 裸体一区二区三区| 18涩涩午夜精品.www| 欧美一级一区二区| 成人av网在线| 亚欧色一区w666天堂| 国产亚洲一区二区三区四区| 色婷婷狠狠综合| 国产一区二区三区综合| 亚洲最新在线观看| 久久蜜桃一区二区| 欧美日韩国产影片| eeuss鲁片一区二区三区| 欧美a级一区二区| 亚洲婷婷在线视频| 欧美精品一区二区三区高清aⅴ| 91在线小视频| 国产剧情一区在线| 青青草97国产精品免费观看 | 日韩视频在线你懂得| 丁香六月久久综合狠狠色| 亚洲高清不卡在线| 国产精品入口麻豆九色| 欧美一区二区三区在线视频| 一本到一区二区三区| 国产成人免费视频精品含羞草妖精 | 久久精品国产精品亚洲综合| 亚洲免费观看高清完整版在线 | 欧美激情中文不卡| 欧美精品自拍偷拍动漫精品| 91麻豆国产精品久久| 国产成人精品免费看| 蜜桃久久av一区| 亚洲狠狠爱一区二区三区| 国产精品国产三级国产普通话蜜臀 | 日韩一区二区麻豆国产| 国产精品一区二区在线观看网站 | 99久精品国产| 国内偷窥港台综合视频在线播放| 亚洲一二三级电影| 亚洲人一二三区| 欧美国产禁国产网站cc| 久久久久青草大香线综合精品| 欧美日韩高清一区二区| 欧美中文字幕一区二区三区亚洲 | 国产精选一区二区三区| 久久99精品国产麻豆婷婷洗澡| 首页综合国产亚洲丝袜| 亚洲欧美色图小说| 亚洲同性gay激情无套| 国产精品丝袜在线| 欧美国产综合一区二区| 欧美国产1区2区| 中文文精品字幕一区二区| 欧美激情一区在线| 国产精品―色哟哟| 国产精品欧美一区二区三区| 国产精品色哟哟网站| 国产精品国产三级国产aⅴ中文| 国产精品你懂的| 国产精品久久午夜夜伦鲁鲁| 亚洲国产精品传媒在线观看| 欧美国产国产综合| 亚洲视频一区二区在线观看| 亚洲综合网站在线观看| 亚洲成a人在线观看| 日本欧美一区二区| 九九在线精品视频| 国产91对白在线观看九色| a4yy欧美一区二区三区| 在线视频亚洲一区| 欧美精品777| 2022国产精品视频| 中文字幕亚洲电影| 亚洲在线观看免费视频| 蜜臀久久99精品久久久久宅男| 国产一区二区三区黄视频 | 偷拍亚洲欧洲综合| 九九九精品视频| 国产不卡一区视频| 91免费视频大全| 欧美日韩1234| 国产视频911| 亚洲国产精品精华液网站| 日本不卡在线视频| 成人激情小说网站| 91精品午夜视频| 久久久久97国产精华液好用吗| 亚洲视频每日更新| 蜜乳av一区二区| 91理论电影在线观看| 日韩欧美在线网站| 自拍偷拍亚洲综合| 精久久久久久久久久久| 在线日韩一区二区| 久久久久久久综合| 午夜视频在线观看一区二区| 国产精品一区二区在线播放| 在线免费观看日本欧美| 久久亚洲综合色一区二区三区| 一区二区三区四区蜜桃| 国产一区 二区 三区一级| 欧美日韩和欧美的一区二区| 国产精品全国免费观看高清| 日本不卡在线视频| 在线亚洲高清视频| 欧美韩国日本综合| 国内精品伊人久久久久影院对白| 欧美性色aⅴ视频一区日韩精品| 2020国产成人综合网| 亚洲成人av电影在线| 91在线播放网址| 久久综合精品国产一区二区三区| 亚洲国产综合人成综合网站| 成人免费视频一区二区| 日韩一级成人av| 首页国产丝袜综合| 欧美亚洲自拍偷拍| 中文字幕色av一区二区三区| 国产一区二区电影| 精品国产乱码久久久久久免费| 亚洲国产一二三| 一本一本久久a久久精品综合麻豆| ww久久中文字幕| 精品在线免费观看| 日韩欧美不卡一区| 美女mm1313爽爽久久久蜜臀| 欧美日韩精品专区| 亚洲国产一二三| 精品视频123区在线观看| 亚洲蜜臀av乱码久久精品| eeuss鲁一区二区三区| 国产欧美精品一区二区三区四区 | 午夜精品免费在线| 欧美日韩一级二级三级| 一区二区三区成人在线视频| 91蝌蚪porny|