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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? send.cs

?? about sms how to send a sms to the mobile
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using GsmComm.PduConverter;
using GsmComm.GsmCommunication;


namespace SMS
{
	/// <summary>
	/// Summary description for Send.
	/// </summary>
	public class Send : System.Windows.Forms.Form
	{
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt_destination_numbers;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txt_text_remaining;
		private System.Windows.Forms.Button btnSendMessage;
		private System.Windows.Forms.Button BtnClear;
		private System.Windows.Forms.TextBox txt_message;
		private System.Windows.Forms.TextBox txtOutput;
		private System.Windows.Forms.CheckBox chkUnicode;
		private System.Windows.Forms.CheckBox chkAlert;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.TextBox txtSendTimes;
		private System.Windows.Forms.CheckBox chkMultipleTimes;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
        		
		private delegate void SetTextCallback(string text);

		public Send()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Send));
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txt_destination_numbers = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txt_message = new System.Windows.Forms.TextBox();
			this.txt_text_remaining = new System.Windows.Forms.TextBox();
			this.btnSendMessage = new System.Windows.Forms.Button();
			this.BtnClear = new System.Windows.Forms.Button();
			this.txtOutput = new System.Windows.Forms.TextBox();
			this.chkUnicode = new System.Windows.Forms.CheckBox();
			this.chkAlert = new System.Windows.Forms.CheckBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.txtSendTimes = new System.Windows.Forms.TextBox();
			this.chkMultipleTimes = new System.Windows.Forms.CheckBox();
			this.label19 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// pictureBox1
			// 
			this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
			this.pictureBox1.Location = new System.Drawing.Point(0, 0);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(368, 104);
			this.pictureBox1.TabIndex = 0;
			this.pictureBox1.TabStop = false;
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label1.Location = new System.Drawing.Point(0, 112);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(144, 24);
			this.label1.TabIndex = 1;
			this.label1.Text = "Destination Number :";
			// 
			// txt_destination_numbers
			// 
			this.txt_destination_numbers.Location = new System.Drawing.Point(0, 136);
			this.txt_destination_numbers.Name = "txt_destination_numbers";
			this.txt_destination_numbers.Size = new System.Drawing.Size(224, 20);
			this.txt_destination_numbers.TabIndex = 2;
			this.txt_destination_numbers.Text = "";
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label2.Location = new System.Drawing.Point(0, 168);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 16);
			this.label2.TabIndex = 3;
			this.label2.Text = "Message :";
			// 
			// txt_message
			// 
			this.txt_message.Location = new System.Drawing.Point(0, 192);
			this.txt_message.Multiline = true;
			this.txt_message.Name = "txt_message";
			this.txt_message.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txt_message.Size = new System.Drawing.Size(224, 112);
			this.txt_message.TabIndex = 4;
			this.txt_message.Text = "";
			this.txt_message.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
			// 
			// txt_text_remaining
			// 
			this.txt_text_remaining.BackColor = System.Drawing.SystemColors.Control;
			this.txt_text_remaining.Enabled = false;
			this.txt_text_remaining.Location = new System.Drawing.Point(224, 288);
			this.txt_text_remaining.Name = "txt_text_remaining";
			this.txt_text_remaining.Size = new System.Drawing.Size(40, 20);
			this.txt_text_remaining.TabIndex = 5;
			this.txt_text_remaining.Text = "160";
			// 
			// btnSendMessage
			// 
			this.btnSendMessage.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnSendMessage.Location = new System.Drawing.Point(144, 320);
			this.btnSendMessage.Name = "btnSendMessage";
			this.btnSendMessage.Size = new System.Drawing.Size(80, 24);
			this.btnSendMessage.TabIndex = 16;
			this.btnSendMessage.Text = "Send";
			this.btnSendMessage.Click += new System.EventHandler(this.btnSendMessage_Click);
			// 
			// BtnClear
			// 
			this.BtnClear.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.BtnClear.Location = new System.Drawing.Point(56, 320);
			this.BtnClear.Name = "BtnClear";
			this.BtnClear.Size = new System.Drawing.Size(80, 24);
			this.BtnClear.TabIndex = 17;
			this.BtnClear.Text = "Clear";
			this.BtnClear.Click += new System.EventHandler(this.BtnClear_Click);
			// 
			// txtOutput
			// 
			this.txtOutput.Location = new System.Drawing.Point(0, 352);
			this.txtOutput.Multiline = true;
			this.txtOutput.Name = "txtOutput";
			this.txtOutput.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.txtOutput.Size = new System.Drawing.Size(504, 120);
			this.txtOutput.TabIndex = 56;
			this.txtOutput.Text = "";
			// 
			// chkUnicode
			// 
			this.chkUnicode.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkUnicode.Location = new System.Drawing.Point(16, 56);
			this.chkUnicode.Name = "chkUnicode";
			this.chkUnicode.Size = new System.Drawing.Size(208, 24);
			this.chkUnicode.TabIndex = 58;
			this.chkUnicode.Text = "Send as Unicode (UCS2)";
			// 
			// chkAlert
			// 
			this.chkAlert.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkAlert.Location = new System.Drawing.Point(16, 24);
			this.chkAlert.Name = "chkAlert";
			this.chkAlert.Size = new System.Drawing.Size(176, 24);
			this.chkAlert.TabIndex = 57;
			this.chkAlert.Text = "Request immediate display (alert)";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.chkUnicode);
			this.groupBox1.Controls.Add(this.chkAlert);
			this.groupBox1.Controls.Add(this.txtSendTimes);
			this.groupBox1.Controls.Add(this.chkMultipleTimes);
			this.groupBox1.Controls.Add(this.label19);
			this.groupBox1.Location = new System.Drawing.Point(240, 112);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(264, 128);
			this.groupBox1.TabIndex = 59;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Option";
			// 
			// txtSendTimes
			// 
			this.txtSendTimes.Location = new System.Drawing.Point(120, 88);
			this.txtSendTimes.Name = "txtSendTimes";
			this.txtSendTimes.Size = new System.Drawing.Size(48, 20);
			this.txtSendTimes.TabIndex = 61;
			this.txtSendTimes.Text = "1";
			// 
			// chkMultipleTimes
			// 
			this.chkMultipleTimes.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkMultipleTimes.Location = new System.Drawing.Point(16, 88);
			this.chkMultipleTimes.Name = "chkMultipleTimes";
			this.chkMultipleTimes.TabIndex = 60;
			this.chkMultipleTimes.Text = "Send message";
			// 
			// label19
			// 
			this.label19.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.label19.Location = new System.Drawing.Point(176, 88);
			this.label19.Name = "label19";
			this.label19.Size = new System.Drawing.Size(72, 23);
			this.label19.TabIndex = 62;
			this.label19.Text = "times";
			this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// Send
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(504, 478);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.txtOutput);
			this.Controls.Add(this.BtnClear);
			this.Controls.Add(this.btnSendMessage);
			this.Controls.Add(this.txt_text_remaining);
			this.Controls.Add(this.txt_message);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.txt_destination_numbers);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.pictureBox1);
			this.Name = "Send";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Send SMS";
			this.Load += new System.EventHandler(this.Send_Load);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void textBox1_TextChanged(object sender, System.EventArgs e)
		{
			int remaining=int.Parse(txt_text_remaining.Text.Trim());
			remaining-=1;
			txt_text_remaining.Text=remaining.ToString();
		}

		private void BtnClear_Click(object sender, System.EventArgs e)
		{
			txt_message.Text="";
			txt_message.Focus();
		}

		private void btnSendMessage_Click(object sender, System.EventArgs e)
		{
			Cursor.Current = Cursors.WaitCursor;

			try
			{
				// Send an SMS message
				SmsSubmitPdu pdu;
				bool alert = chkAlert.Checked;
				bool unicode = chkUnicode.Checked;
				
				if (!alert && !unicode)
				{
					// The straightforward version
					pdu = new SmsSubmitPdu(txt_message.Text, txt_destination_numbers.Text,"");  // "" indicate SMSC No
				}
				else
				{
					// The extended version with dcs
					byte dcs;
					if (!alert && unicode)
						dcs = DataCodingScheme.NoClass_16Bit;
					else if (alert && !unicode)
						dcs = DataCodingScheme.Class0_7Bit;
					else if (alert && unicode)
						dcs = DataCodingScheme.Class0_16Bit;
					else
						dcs = DataCodingScheme.NoClass_7Bit; // should never occur here

					pdu = new SmsSubmitPdu(txt_message.Text, txt_destination_numbers.Text, "", dcs);
				}

				// Send the same message multiple times if this is set
				int times = chkMultipleTimes.Checked ? int.Parse(txtSendTimes.Text) : 1;

				// Send the message the specified number of times
				for (int i=0;i<times;i++)
				{
					CommSetting.comm.SendMessage(pdu);
					Output("Message {0} of {1} sent.", i+1, times);
					Output("");
				}
			}
			catch(Exception ex)
			{
				MessageBox.Show(ex.Message);
			}

			Cursor.Current = Cursors.Default;
		}

		

		private void Output(string text)
		{
			if (this.txtOutput.InvokeRequired)
			{
				SetTextCallback stc = new SetTextCallback(Output);
				this.Invoke(stc, new object[] { text });
			}
			else
			{
				txtOutput.AppendText(text);
				txtOutput.AppendText("\r\n");
			}
		}

		private void Send_Load(object sender, System.EventArgs e)
		{
			chkMultipleTimes.Checked=true;		
		}

		private void Output(string text, params object[] args)
		{
			string msg = string.Format(text, args);
			Output(msg);
		}

	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.99精品| 一区二区三区高清| 国产在线播放一区| 久久综合九色综合欧美98| 激情久久五月天| 国产日韩欧美精品综合| www.成人在线| 亚洲地区一二三色| 精品剧情在线观看| 成人av中文字幕| 亚洲美女精品一区| 日韩欧美综合在线| 国产激情偷乱视频一区二区三区| 国产精品成人在线观看| 欧美亚洲国产怡红院影院| 日韩av不卡在线观看| 久久久精品tv| 欧美性生活久久| 国产一区欧美一区| 一二三四社区欧美黄| 欧美一区二区三区爱爱| 成人综合在线网站| 亚洲午夜精品久久久久久久久| 日韩一区二区三区四区 | 亚洲一卡二卡三卡四卡无卡久久| 欧美性受xxxx| 国产精品资源站在线| 一区二区三区 在线观看视频| 日韩欧美在线观看一区二区三区| www.亚洲人| 国产不卡视频在线观看| 一区二区国产视频| 欧美成人aa大片| 欧美在线色视频| 国产福利不卡视频| 日韩av中文字幕一区二区三区| 国产亚洲婷婷免费| 欧美另类久久久品| 91在线观看污| 国产精品一级在线| 日韩成人午夜精品| 亚洲精品视频观看| 国产午夜亚洲精品羞羞网站| 91精选在线观看| 色猫猫国产区一区二在线视频| 国产又黄又大久久| 三级久久三级久久久| 亚洲视频一区在线观看| 久久精品视频一区二区| 7777精品伊人久久久大香线蕉最新版| 不卡视频免费播放| 精品午夜一区二区三区在线观看| 亚洲国产精品一区二区www在线| 日本一区二区成人| 精品国产制服丝袜高跟| 欧美电影一区二区三区| 在线观看一区不卡| 91毛片在线观看| 成人激情校园春色| 国产99精品国产| 国产精品综合视频| 久久99国产乱子伦精品免费| 日本欧美一区二区| 午夜精品影院在线观看| 亚洲与欧洲av电影| 亚洲永久精品大片| 亚洲最新视频在线观看| 夜色激情一区二区| 亚洲一区在线播放| 一区二区三区 在线观看视频 | 精品粉嫩超白一线天av| 91精品国产色综合久久不卡蜜臀| 91蝌蚪国产九色| 色综合久久88色综合天天免费| 99综合电影在线视频| www.亚洲精品| 色又黄又爽网站www久久| 一本在线高清不卡dvd| 91色porny在线视频| 色综合中文综合网| av动漫一区二区| www.久久久久久久久| 91麻豆文化传媒在线观看| 99热在这里有精品免费| 色综合色综合色综合色综合色综合| 94-欧美-setu| 欧美日韩国产一级片| 欧美一区二区三区爱爱| 亚洲精品一区二区三区99| 国产午夜精品一区二区三区嫩草| 美日韩一级片在线观看| 麻豆一区二区99久久久久| 国产在线国偷精品免费看| 国产成人丝袜美腿| 99久久久国产精品| 精品视频1区2区| 日韩欧美国产三级电影视频| 精品国产一区二区三区忘忧草| 国产午夜精品在线观看| 亚洲伦在线观看| 日韩精品欧美精品| 国产精品亚洲人在线观看| 99视频在线精品| 91精品国产综合久久蜜臀| 久久网站热最新地址| 亚洲日穴在线视频| 日本va欧美va精品| 丁香一区二区三区| 欧美日韩性生活| 久久蜜桃av一区二区天堂 | 一区二区三区精品在线| 日产国产欧美视频一区精品 | 亚洲欧洲另类国产综合| 午夜精品一区二区三区免费视频| 国产一区二区三区不卡在线观看 | 欧美白人最猛性xxxxx69交| 国产精品乱码久久久久久| 亚洲国产欧美在线| 国产福利电影一区二区三区| 欧美色爱综合网| 久久久久久夜精品精品免费| 1区2区3区国产精品| 青娱乐精品在线视频| voyeur盗摄精品| 欧美xxxx老人做受| 一区二区三区中文字幕| 国产一区二区美女| 欧美日韩一区高清| 中文字幕av资源一区| 免费精品视频在线| 欧美午夜不卡视频| 国产精品国产三级国产普通话三级 | a美女胸又www黄视频久久| 欧美一区二区久久| 樱花草国产18久久久久| 国产精华液一区二区三区| 91精品福利在线一区二区三区 | 久久久精品日韩欧美| 日韩福利视频导航| 欧美亚洲一区二区三区四区| 国产欧美日韩亚州综合| 免费观看在线综合| 欧美三级三级三级| 亚洲精品免费视频| 成人理论电影网| 久久久久国产精品麻豆| 久久成人久久鬼色| 91麻豆精品国产91久久久更新时间 | 欧美日韩综合在线免费观看| 国产精品沙发午睡系列990531| 久久国产精品99久久人人澡| 这里是久久伊人| 日日摸夜夜添夜夜添精品视频| 99在线精品观看| 国产精品另类一区| 成人黄色小视频| 国产欧美一区二区精品久导航| 韩国精品主播一区二区在线观看| 91精品国产色综合久久不卡电影 | 亚洲国产精品久久艾草纯爱| 91在线云播放| 亚洲激情av在线| 色就色 综合激情| 亚洲综合免费观看高清完整版 | 久久久久久久久久久黄色| 久久国产精品99久久久久久老狼 | 一本一道久久a久久精品 | 欧美精品99久久久**| 亚洲综合色区另类av| 欧美日韩免费视频| 亚洲一卡二卡三卡四卡无卡久久| 日本高清成人免费播放| 亚洲综合av网| 欧美三级午夜理伦三级中视频| 亚洲成人精品在线观看| 欧美日本免费一区二区三区| 日本最新不卡在线| 精品成人a区在线观看| 国产激情一区二区三区| 中文字幕第一页久久| 91女厕偷拍女厕偷拍高清| 一区二区三区在线免费播放| 欧美性色黄大片手机版| 日韩电影在线免费| 久久亚洲一区二区三区明星换脸| 国产精品资源在线观看| 一色屋精品亚洲香蕉网站| 色婷婷亚洲精品| 蜜臀av在线播放一区二区三区| 日韩一二在线观看| 国产黄色91视频| 亚洲美女精品一区| 555夜色666亚洲国产免| 国产精品夜夜爽| 伊人婷婷欧美激情| 欧美一级精品在线| 波多野结衣中文字幕一区| 亚洲图片欧美视频| 久久先锋影音av| 欧美中文一区二区三区|