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

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

?? settingsform.cs

?? 用C#語言編寫
?? CS
?? 第 1 頁 / 共 3 頁
字號:
			this.label4.Location = new System.Drawing.Point(8, 40);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 16);
			this.label4.TabIndex = 9;
			this.label4.Text = "DataBits";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.toolTip.SetToolTip(this.label4, "Number of data bits in the frame (unsupported values will throw an exception)");
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.label9);
			this.groupBox4.Controls.Add(this.label8);
			this.groupBox4.Controls.Add(this.comboBoxXoff);
			this.groupBox4.Controls.Add(this.comboBoxXon);
			this.groupBox4.Location = new System.Drawing.Point(4, 303);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
			this.groupBox4.Size = new System.Drawing.Size(288, 48);
			this.groupBox4.TabIndex = 21;
			this.groupBox4.TabStop = false;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(149, 18);
			this.label9.Name = "label9";
			this.label9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.label9.Size = new System.Drawing.Size(64, 16);
			this.label9.TabIndex = 28;
			this.label9.Text = "Xoff Code";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.toolTip.SetToolTip(this.label9, "ASCII code to use for Xoff signal");
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(8, 18);
			this.label8.Name = "label8";
			this.label8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.label8.Size = new System.Drawing.Size(64, 16);
			this.label8.TabIndex = 27;
			this.label8.Text = "Xon Code";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.toolTip.SetToolTip(this.label8, "ASCII code to use for Xon signal");
			// 
			// comboBoxXoff
			// 
			this.comboBoxXoff.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBoxXoff.Location = new System.Drawing.Point(219, 16);
			this.comboBoxXoff.Name = "comboBoxXoff";
			this.comboBoxXoff.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.comboBoxXoff.Size = new System.Drawing.Size(56, 21);
			this.comboBoxXoff.TabIndex = 26;
			this.toolTip.SetToolTip(this.comboBoxXoff, "ASCII code to use for Xoff signal");
			// 
			// comboBoxXon
			// 
			this.comboBoxXon.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBoxXon.Location = new System.Drawing.Point(75, 16);
			this.comboBoxXon.Name = "comboBoxXon";
			this.comboBoxXon.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.comboBoxXon.Size = new System.Drawing.Size(56, 21);
			this.comboBoxXon.TabIndex = 25;
			this.toolTip.SetToolTip(this.comboBoxXon, "ASCII code to use for Xon signal");
			// 
			// checkBoxAR
			// 
			this.checkBoxAR.Location = new System.Drawing.Point(156, 280);
			this.checkBoxAR.Name = "checkBoxAR";
			this.checkBoxAR.Size = new System.Drawing.Size(96, 16);
			this.checkBoxAR.TabIndex = 22;
			this.checkBoxAR.Text = "Auto re-open";
			this.toolTip.SetToolTip(this.checkBoxAR, "Automatically reopen port if it closes due to an error");
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.Add(this.label18);
			this.groupBox5.Controls.Add(this.label10);
			this.groupBox5.Controls.Add(this.checkBoxBLC);
			this.groupBox5.Controls.Add(this.comboBoxBRK);
			this.groupBox5.Controls.Add(this.checkBoxHX);
			this.groupBox5.Controls.Add(this.numericUpDownBRN);
			this.groupBox5.Location = new System.Drawing.Point(4, 352);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(288, 96);
			this.groupBox5.TabIndex = 23;
			this.groupBox5.TabStop = false;
			this.groupBox5.Text = "Display";
			// 
			// label18
			// 
			this.label18.Location = new System.Drawing.Point(200, 64);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(56, 16);
			this.label18.TabIndex = 27;
			this.label18.Text = "chars.";
			this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(16, 65);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(128, 16);
			this.label10.TabIndex = 26;
			this.label10.Text = "Break line every";
			this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.toolTip.SetToolTip(this.label10, "Break line when it reaches this length (0 - do not break)");
			// 
			// checkBoxBLC
			// 
			this.checkBoxBLC.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.checkBoxBLC.Location = new System.Drawing.Point(13, 40);
			this.checkBoxBLC.Name = "checkBoxBLC";
			this.checkBoxBLC.Size = new System.Drawing.Size(152, 16);
			this.checkBoxBLC.TabIndex = 25;
			this.checkBoxBLC.Text = "Break line on ASCII char";
			this.checkBoxBLC.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.toolTip.SetToolTip(this.checkBoxBLC, "Break displayed lines after specified character");
			// 
			// comboBoxBRK
			// 
			this.comboBoxBRK.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.comboBoxBRK.Location = new System.Drawing.Point(176, 37);
			this.comboBoxBRK.Name = "comboBoxBRK";
			this.comboBoxBRK.Size = new System.Drawing.Size(56, 21);
			this.comboBoxBRK.TabIndex = 24;
			this.toolTip.SetToolTip(this.comboBoxBRK, "The character after which the line is broken");
			// 
			// checkBoxHX
			// 
			this.checkBoxHX.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.checkBoxHX.Location = new System.Drawing.Point(13, 16);
			this.checkBoxHX.Name = "checkBoxHX";
			this.checkBoxHX.Size = new System.Drawing.Size(152, 16);
			this.checkBoxHX.TabIndex = 23;
			this.checkBoxHX.Text = "Display in hexadecimal";
			this.checkBoxHX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.toolTip.SetToolTip(this.checkBoxHX, "Display received characters as two hexadecimal digits");
			// 
			// numericUpDownBRN
			// 
			this.numericUpDownBRN.Location = new System.Drawing.Point(151, 64);
			this.numericUpDownBRN.Maximum = new System.Decimal(new int[] {
																			 255,
																			 0,
																			 0,
																			 0});
			this.numericUpDownBRN.Name = "numericUpDownBRN";
			this.numericUpDownBRN.Size = new System.Drawing.Size(48, 20);
			this.numericUpDownBRN.TabIndex = 19;
			this.toolTip.SetToolTip(this.numericUpDownBRN, "Break line when it reaches this length (0 - do not break)");
			// 
			// openFileDialog
			// 
			this.openFileDialog.DefaultExt = "JHC";
			this.openFileDialog.Filter = "JHBaseTerm files|*.JHC|All files|*.*";
			this.openFileDialog.Title = "Open XML Settings File";
			// 
			// saveFileDialog
			// 
			this.saveFileDialog.DefaultExt = "JHC";
			this.saveFileDialog.Filter = "JHBaseTerm files|*.JHC|All files|*.*";
			this.saveFileDialog.Title = "Save XML Settings File";
			// 
			// SettingsForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(294, 451);
			this.Controls.Add(this.groupBox5);
			this.Controls.Add(this.checkBoxAR);
			this.Controls.Add(this.groupBox4);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Menu = this.mainMenu1;
			this.Name = "SettingsForm";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "CommBase Settings";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.SettingsForm_Closing);
			this.Load += new System.EventHandler(this.SettingsForm_Load);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownTC)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownTM)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownTxS)).EndInit();
			this.groupBox2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownRxS)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownHW)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownLW)).EndInit();
			this.groupBox3.ResumeLayout(false);
			this.groupBox4.ResumeLayout(false);
			this.groupBox5.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDownBRN)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

	private void Import()
	{
		BaseTerm.CommBaseTermSettings s = BaseTerm.settings;

		comboBoxPort.Text = s.port;
		checkBoxAR.Checked = s.autoReopen;
		comboBoxBaud.SelectedIndex = comboBoxBaud.FindString(s.baudRate.ToString());
		comboBoxParity.SelectedIndex = (int)s.parity;
		comboBoxDB.SelectedIndex = comboBoxDB.FindString(s.dataBits.ToString());
		comboBoxSB.SelectedIndex = (int)s.stopBits;
		checkBoxCTS.Checked = s.txFlowCTS;
		checkBoxDSR.Checked = s.txFlowDSR;
		checkBoxTxX.Checked = s.txFlowX;
		checkBoxXC.Checked = s.txWhenRxXoff;
		comboBoxRTS.SelectedIndex = (int)s.useRTS;
		comboBoxDTR.SelectedIndex = (int)s.useDTR;
		checkBoxRxX.Checked = s.rxFlowX;
		checkBoxGD.Checked = s.rxGateDSR;
		comboBoxXon.SelectedIndex = (int)s.XonChar;
		comboBoxXoff.SelectedIndex = (int)s.XoffChar;
		numericUpDownTM.Value = s.sendTimeoutMultiplier;
		numericUpDownTC.Value = s.sendTimeoutConstant;
		numericUpDownLW.Value = s.rxLowWater;
		numericUpDownHW.Value = s.rxHighWater;
		numericUpDownRxS.Value = s.rxQueue;
		checkBoxCheck.Checked = s.checkAllSends;
		numericUpDownTxS.Value = s.txQueue;
		checkBoxBLC.Checked = s.breakLineOnChar;
		comboBoxBRK.SelectedIndex = (int)s.lineBreakChar;
		numericUpDownBRN.Value = s.charsInLine;
		checkBoxHX.Checked = s.showAsHex;
	}

	private void Export()
	{
		BaseTerm.CommBaseTermSettings s = BaseTerm.settings;

		s.port = comboBoxPort.Text;
		s.autoReopen = checkBoxAR.Checked;
		s.baudRate = int.Parse(comboBoxBaud.Text);
		s.parity = (CommBase.Parity)comboBoxParity.SelectedIndex;
		s.dataBits = int.Parse(comboBoxDB.Text);
		s.stopBits = (CommBase.StopBits)comboBoxSB.SelectedIndex;
		s.txFlowCTS = checkBoxCTS.Checked;
		s.txFlowDSR = checkBoxDSR.Checked;
		s.txFlowX = checkBoxTxX.Checked;
		s.txWhenRxXoff = checkBoxXC.Checked;
		s.useRTS = (CommBase.HSOutput)comboBoxRTS.SelectedIndex;
		s.useDTR = (CommBase.HSOutput)comboBoxDTR.SelectedIndex;
		s.rxFlowX = checkBoxRxX.Checked;
		s.rxGateDSR = checkBoxGD.Checked;
		s.XonChar = (CommBase.ASCII)comboBoxXon.SelectedIndex;
		s.XoffChar = (CommBase.ASCII)comboBoxXoff.SelectedIndex;
		s.sendTimeoutMultiplier = (uint)numericUpDownTM.Value;
		s.sendTimeoutConstant = (uint)numericUpDownTC.Value;
		s.rxLowWater = (int)numericUpDownLW.Value;
		s.rxHighWater = (int)numericUpDownHW.Value;
		s.rxQueue = (int)numericUpDownRxS.Value;
		s.txQueue = (int)numericUpDownTxS.Value;
		s.checkAllSends = checkBoxCheck.Checked;
		s.breakLineOnChar = checkBoxBLC.Checked;
		s.lineBreakChar = (CommBase.ASCII)comboBoxBRK.SelectedIndex;
		s.charsInLine = (int)numericUpDownBRN.Value;
		s.showAsHex = checkBoxHX.Checked;
	}

	private void FillASCII(ComboBox cb)
	{
		CommBase.ASCII asc;
		for (int i=0; (i < 256); i++)
		{
			asc = (CommBase.ASCII)i;
			if ((i < 33) || (i > 126))
				cb.Items.Add(asc.ToString());
			else
				cb.Items.Add(new string((char)i, 1));
		}
	}

	private void FillPorts(ComboBox cb)
	{
		string n;
		for (int i=0; (i < 99); i++)
		{
			n = "COM" + i.ToString();
			if (BaseTerm.term.IsPortAvailable(n) == CommBase.PortStatus.available)
			{
				cb.Items.Add(n);
			}
		}
	}

	private void SettingsForm_Load(object sender, System.EventArgs e)
	{
		Import();
	}

	private void SettingsForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
	{
		Export();
	}

	private void menuItemHSN_Click(object sender, System.EventArgs e)
	{
		BaseTerm.settings.SetStandard(comboBoxPort.Text, int.Parse(comboBoxBaud.Text), CommBase.Handshake.none);
		Import();
	}

	private void menuItemHSX_Click(object sender, System.EventArgs e)
	{
		BaseTerm.settings.SetStandard(comboBoxPort.Text, int.Parse(comboBoxBaud.Text), CommBase.Handshake.XonXoff);
		Import();
	}

	private void menuItemHSC_Click(object sender, System.EventArgs e)
	{
		BaseTerm.settings.SetStandard(comboBoxPort.Text, int.Parse(comboBoxBaud.Text), CommBase.Handshake.CtsRts);
		Import();
	}

	private void menuItemHSD_Click(object sender, System.EventArgs e)
	{
		BaseTerm.settings.SetStandard(comboBoxPort.Text, int.Parse(comboBoxBaud.Text), CommBase.Handshake.DsrDtr);
		Import();
	}

	private void menuItemClose_Click(object sender, System.EventArgs e)
	{
		this.Close();
	}

	private void menuItemSaveXML_Click(object sender, System.EventArgs e)
	{
		if (saveFileDialog.ShowDialog() == DialogResult.OK)
		{
			Export();
			BaseTerm.settings.SaveAsXML(saveFileDialog.OpenFile());
		}
	}

	private void menuItemOpenXML_Click(object sender, System.EventArgs e)
	{
		if (openFileDialog.ShowDialog() == DialogResult.OK)
		{
			BaseTerm.CommBaseTermSettings ss = BaseTerm.CommBaseTermSettings.LoadFromXML(openFileDialog.OpenFile());
			if (ss != null)
			{
				BaseTerm.settings = ss;
				Import();
			}
			else
			{
				MessageBox.Show("Error opening XML settings file", "BaseTerm", MessageBoxButtons.OK);
			}
		}
	}

	private void comboBoxPort_DropDown(object sender, System.EventArgs e)
	{
		if (comboBoxPort.Items.Count < 1) FillPorts(comboBoxPort);	
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品日韩一区二区三区免费视频| 韩国女主播成人在线观看| 成人动漫一区二区三区| 亚洲国产成人一区二区三区| 成人性生交大片免费看中文网站| 欧美国产亚洲另类动漫| 91污在线观看| 日日夜夜一区二区| 久久综合色一综合色88| 成人激情免费电影网址| 亚洲主播在线观看| 欧美一区二区私人影院日本| 国产黄色91视频| 亚洲欧美国产三级| 日韩一区二区三区免费看| 国产福利一区在线| 亚洲欧洲av在线| 欧美一区二区三区影视| 国产一区二区三区免费播放| 中文字幕视频一区二区三区久| 欧美怡红院视频| 韩国在线一区二区| 亚洲精品国产第一综合99久久 | 欧美精品三级日韩久久| 久久久美女艺术照精彩视频福利播放| 加勒比av一区二区| 国产精品久久久久影视| 欧美电影在线免费观看| 高清国产一区二区三区| 国产精品伊人色| 综合久久久久久| 91精品国产综合久久久久久久久久 | 日韩一区二区免费高清| 成人深夜视频在线观看| 日韩精品久久理论片| 国产精品视频第一区| 欧美日韩国产影片| 成人性色生活片免费看爆迷你毛片| 一区二区三区产品免费精品久久75| 欧美电影免费提供在线观看| 日本韩国精品一区二区在线观看| 国产又粗又猛又爽又黄91精品| 夜夜操天天操亚洲| 亚洲国产精品成人综合| 欧美一级免费大片| 一本一道波多野结衣一区二区| 久久精品免费观看| 亚洲大片免费看| 国产精品欧美一区二区三区| 欧美电影免费观看高清完整版在 | 老司机免费视频一区二区三区| 成人免费小视频| 精品久久久久久最新网址| 91视频观看免费| 国产suv精品一区二区883| 免费一级欧美片在线观看| 亚洲综合另类小说| 亚洲欧美精品午睡沙发| 国产精品久久看| 亚洲国产成人一区二区三区| 国产亚洲欧洲一区高清在线观看| 69p69国产精品| 欧美日韩激情一区二区三区| 97久久超碰国产精品| 丰满放荡岳乱妇91ww| 国产成人在线网站| 国产成人在线视频网址| 国产精品一区久久久久| 国产精品一区二区久久精品爱涩| 久久99精品国产91久久来源| 日本不卡一区二区三区高清视频| 亚洲成人av中文| 视频在线在亚洲| 日本成人超碰在线观看| 老司机午夜精品| 国内不卡的二区三区中文字幕| 久久精品国产亚洲aⅴ| 日本视频在线一区| 精品一区二区三区视频| 国产在线日韩欧美| 国产福利一区二区三区视频在线| 国产成人99久久亚洲综合精品| 成人国产精品免费网站| www.欧美色图| 在线观看一区二区精品视频| 欧美调教femdomvk| 9191精品国产综合久久久久久| 精品视频1区2区3区| 91精品一区二区三区久久久久久 | 日本欧美大码aⅴ在线播放| 欧美中文字幕一区| 在线中文字幕不卡| 在线观看av不卡| 欧美日韩在线免费视频| 免费久久99精品国产| 久久精品亚洲国产奇米99| 欧美中文字幕久久| 国产精品国产三级国产| 欧美亚洲禁片免费| 国产一区二区三区在线观看免费| 国产女主播一区| 欧洲国产伦久久久久久久| 日本在线不卡视频| 中文久久乱码一区二区| 欧美性生活影院| 激情综合亚洲精品| 一区二区三区成人在线视频| 精品成人免费观看| 91热门视频在线观看| 奇米精品一区二区三区在线观看| 欧美激情综合在线| 337p亚洲精品色噜噜狠狠| 成人av在线观| 蜜臀av在线播放一区二区三区| 日本一二三四高清不卡| 欧美一区二区视频网站| 9久草视频在线视频精品| 日本一区中文字幕 | 成人午夜激情片| 爽好多水快深点欧美视频| 亚洲欧洲日韩av| 精品福利在线导航| 91国产视频在线观看| 国产精品一区一区三区| 日韩和欧美一区二区| 亚洲精品写真福利| 国产日韩三级在线| 日韩一区二区高清| 欧美日韩一级黄| 99久久精品国产麻豆演员表| 国产一区二区三区四区五区美女 | 国产精品久久福利| 日韩欧美中文一区| 欧美性生交片4| 日本道在线观看一区二区| 东方aⅴ免费观看久久av| 麻豆国产欧美一区二区三区| 首页国产欧美日韩丝袜| 亚洲午夜电影在线| 亚洲精品久久久久久国产精华液| 国产精品久久久久久久裸模| 久久久国产一区二区三区四区小说 | 色婷婷精品久久二区二区蜜臂av | 色综合一区二区三区| 久久精品亚洲精品国产欧美| 麻豆一区二区三| 中文字幕中文字幕一区二区| 日韩和欧美一区二区三区| 日本韩国欧美在线| 国产精品美女视频| 国产在线精品免费| 日韩三级在线观看| 人妖欧美一区二区| 欧美日韩国产免费| 亚洲一区在线观看网站| 色婷婷久久久久swag精品 | 91久久精品国产91性色tv| 亚洲欧洲日产国产综合网| 欧美激情一区二区三区全黄| 国产午夜精品一区二区| 国产精品蜜臀av| 日韩一区欧美小说| 亚州成人在线电影| 免费三级欧美电影| 国产美女在线观看一区| 成人免费看片app下载| www.综合网.com| 欧美日韩日日骚| 制服丝袜国产精品| 久久精品在这里| ...xxx性欧美| 日精品一区二区三区| 狠狠色丁香婷综合久久| 成人福利电影精品一区二区在线观看| 99久免费精品视频在线观看| 欧美色老头old∨ideo| 日韩欧美的一区| 国产精品国产精品国产专区不片| 亚洲综合另类小说| 久久精品二区亚洲w码| 成人久久18免费网站麻豆 | 日韩理论片网站| 热久久国产精品| 不卡高清视频专区| 欧美视频精品在线观看| 精品国产乱码久久久久久图片| 亚洲色图在线看| 麻豆成人在线观看| 色香蕉成人二区免费| 精品免费一区二区三区| 亚洲六月丁香色婷婷综合久久| 麻豆久久久久久| 色噜噜狠狠色综合中国| 精品国产91乱码一区二区三区| 亚洲精品菠萝久久久久久久| 国产乱色国产精品免费视频| 欧美日本一区二区三区四区| 国产精品麻豆欧美日韩ww| 日本成人超碰在线观看| 在线亚洲一区二区|