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

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

?? configform.cs

?? 取得GSM基站信息的程序NiceTrack以及源代碼
?? CS
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;

using NiceTracker.Libraries;

namespace NiceTracker.Config
{
	/// <summary>
	/// Summary description for ConfigForm.
	/// </summary>
	public class ConfigForm : System.Windows.Forms.Form
	{
		private Microsoft.WindowsCE.Forms.InputPanel inputPanel1;
		private System.Windows.Forms.Label labelTimerFrequency;
		private System.Windows.Forms.NumericUpDown numericUpDownTimerFrequency;
		private System.Windows.Forms.CheckBox checkBoxCollectCells;
		private System.Windows.Forms.CheckBox checkBoxProcessEvents;
		private System.Windows.Forms.Button buttonBrowseFolder;
		private System.Windows.Forms.Label labelDbPath;
		private System.Windows.Forms.TextBox textBoxCellDbPath;
		private System.Windows.Forms.NumericUpDown numericUpDownChartWidth;
		private System.Windows.Forms.Label labelChartWidth;
		private System.Windows.Forms.Button buttonCancel;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ComboBox comboBoxComPort;
		private System.Windows.Forms.Button buttonDetect;
		private System.Windows.Forms.CheckBox checkBoxExpandSip;
		private System.Windows.Forms.CheckBox checkBoxShowdBMChart;
		private System.Windows.Forms.CheckBox checkBoxShowdBMValue;
		private System.Windows.Forms.CheckBox checkBoxShowHex;
		private System.Windows.Forms.MainMenu mainMenu1;
	
		public ConfigForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			numericUpDownTimerFrequency.Value = ConfigManager.UpdateFrequency;
			numericUpDownChartWidth.Value = ConfigManager.ChartWrapLimit;
			checkBoxCollectCells.Checked = ConfigManager.CollectCells;
			checkBoxProcessEvents.Checked = ConfigManager.ProcessEvents;
			textBoxCellDbPath.Text = ConfigManager.DBLocation;
			checkBoxExpandSip.Checked = ConfigManager.ExpandSip;
			checkBoxShowdBMChart.Checked = ConfigManager.ShowDBMChart;
			checkBoxShowdBMValue.Checked = ConfigManager.ShowDBMValue;
			checkBoxShowHex.Checked = ConfigManager.ShowLacCiInHex;

			comboBoxComPort.Items.Clear();
			for ( int i = 0; i<=9; i++ )
				comboBoxComPort.Items.Add( "COM" + i.ToString() + ":" );
			comboBoxComPort.SelectedIndex = ConfigManager.ComPort;
			
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			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()
		{
			this.inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.labelTimerFrequency = new System.Windows.Forms.Label();
			this.numericUpDownTimerFrequency = new System.Windows.Forms.NumericUpDown();
			this.checkBoxCollectCells = new System.Windows.Forms.CheckBox();
			this.checkBoxProcessEvents = new System.Windows.Forms.CheckBox();
			this.buttonBrowseFolder = new System.Windows.Forms.Button();
			this.labelDbPath = new System.Windows.Forms.Label();
			this.textBoxCellDbPath = new System.Windows.Forms.TextBox();
			this.numericUpDownChartWidth = new System.Windows.Forms.NumericUpDown();
			this.labelChartWidth = new System.Windows.Forms.Label();
			this.buttonCancel = new System.Windows.Forms.Button();
			this.label1 = new System.Windows.Forms.Label();
			this.comboBoxComPort = new System.Windows.Forms.ComboBox();
			this.buttonDetect = new System.Windows.Forms.Button();
			this.checkBoxExpandSip = new System.Windows.Forms.CheckBox();
			this.checkBoxShowdBMChart = new System.Windows.Forms.CheckBox();
			this.checkBoxShowdBMValue = new System.Windows.Forms.CheckBox();
			this.checkBoxShowHex = new System.Windows.Forms.CheckBox();
			// 
			// labelTimerFrequency
			// 
			this.labelTimerFrequency.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.labelTimerFrequency.Location = new System.Drawing.Point(0, 8);
			this.labelTimerFrequency.Size = new System.Drawing.Size(96, 16);
			this.labelTimerFrequency.Text = "Update Freq. (secs)";
			// 
			// numericUpDownTimerFrequency
			// 
			this.numericUpDownTimerFrequency.Location = new System.Drawing.Point(104, 6);
			this.numericUpDownTimerFrequency.Minimum = new System.Decimal(new int[] {
																						5,
																						0,
																						0,
																						0});
			this.numericUpDownTimerFrequency.Size = new System.Drawing.Size(56, 20);
			this.numericUpDownTimerFrequency.Value = new System.Decimal(new int[] {
																					  5,
																					  0,
																					  0,
																					  0});
			// 
			// checkBoxCollectCells
			// 
			this.checkBoxCollectCells.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxCollectCells.Location = new System.Drawing.Point(8, 128);
			this.checkBoxCollectCells.Size = new System.Drawing.Size(104, 20);
			this.checkBoxCollectCells.Text = "Collect cells";
			// 
			// checkBoxProcessEvents
			// 
			this.checkBoxProcessEvents.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxProcessEvents.Location = new System.Drawing.Point(8, 152);
			this.checkBoxProcessEvents.Size = new System.Drawing.Size(104, 20);
			this.checkBoxProcessEvents.Text = "Process events";
			// 
			// buttonBrowseFolder
			// 
			this.buttonBrowseFolder.Location = new System.Drawing.Point(208, 64);
			this.buttonBrowseFolder.Size = new System.Drawing.Size(24, 20);
			this.buttonBrowseFolder.Text = "...";
			this.buttonBrowseFolder.Click += new System.EventHandler(this.buttonBrowseFolder_Click);
			// 
			// labelDbPath
			// 
			this.labelDbPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.labelDbPath.Location = new System.Drawing.Point(0, 67);
			this.labelDbPath.Size = new System.Drawing.Size(96, 16);
			this.labelDbPath.Text = "Cell DB Path:";
			// 
			// textBoxCellDbPath
			// 
			this.textBoxCellDbPath.Location = new System.Drawing.Point(104, 64);
			this.textBoxCellDbPath.Size = new System.Drawing.Size(104, 20);
			this.textBoxCellDbPath.Text = "";
			// 
			// numericUpDownChartWidth
			// 
			this.numericUpDownChartWidth.Location = new System.Drawing.Point(104, 32);
			this.numericUpDownChartWidth.Size = new System.Drawing.Size(56, 20);
			// 
			// labelChartWidth
			// 
			this.labelChartWidth.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.labelChartWidth.Location = new System.Drawing.Point(0, 35);
			this.labelChartWidth.Size = new System.Drawing.Size(96, 16);
			this.labelChartWidth.Text = "Chart width";
			// 
			// buttonCancel
			// 
			this.buttonCancel.Location = new System.Drawing.Point(160, 240);
			this.buttonCancel.Size = new System.Drawing.Size(72, 24);
			this.buttonCancel.Text = "Cancel";
			this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.label1.Location = new System.Drawing.Point(0, 99);
			this.label1.Size = new System.Drawing.Size(96, 16);
			this.label1.Text = "COM Port:";
			// 
			// comboBoxComPort
			// 
			this.comboBoxComPort.Location = new System.Drawing.Point(104, 96);
			this.comboBoxComPort.Size = new System.Drawing.Size(80, 21);
			// 
			// buttonDetect
			// 
			this.buttonDetect.Location = new System.Drawing.Point(184, 96);
			this.buttonDetect.Size = new System.Drawing.Size(48, 20);
			this.buttonDetect.Text = "Detect";
			this.buttonDetect.Click += new System.EventHandler(this.buttonDetect_Click);
			// 
			// checkBoxExpandSip
			// 
			this.checkBoxExpandSip.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxExpandSip.Location = new System.Drawing.Point(112, 128);
			this.checkBoxExpandSip.Size = new System.Drawing.Size(120, 20);
			this.checkBoxExpandSip.Text = "Expand input panel";
			// 
			// checkBoxShowdBMChart
			// 
			this.checkBoxShowdBMChart.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxShowdBMChart.Location = new System.Drawing.Point(8, 176);
			this.checkBoxShowdBMChart.Size = new System.Drawing.Size(104, 20);
			this.checkBoxShowdBMChart.Text = "Show dbM on chart";
			// 
			// checkBoxShowdBMValue
			// 
			this.checkBoxShowdBMValue.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxShowdBMValue.Location = new System.Drawing.Point(112, 152);
			this.checkBoxShowdBMValue.Size = new System.Drawing.Size(120, 20);
			this.checkBoxShowdBMValue.Text = "Show dbM value";
			// 
			// checkBoxShowHex
			// 
			this.checkBoxShowHex.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular);
			this.checkBoxShowHex.Location = new System.Drawing.Point(112, 176);
			this.checkBoxShowHex.Size = new System.Drawing.Size(120, 20);
			this.checkBoxShowHex.Text = "Show LAC/CI in Hex";
			// 
			// ConfigForm
			// 
			this.Controls.Add(this.checkBoxShowHex);
			this.Controls.Add(this.checkBoxShowdBMValue);
			this.Controls.Add(this.checkBoxShowdBMChart);
			this.Controls.Add(this.checkBoxExpandSip);
			this.Controls.Add(this.buttonDetect);
			this.Controls.Add(this.comboBoxComPort);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.buttonCancel);
			this.Controls.Add(this.labelChartWidth);
			this.Controls.Add(this.numericUpDownChartWidth);
			this.Controls.Add(this.textBoxCellDbPath);
			this.Controls.Add(this.labelDbPath);
			this.Controls.Add(this.buttonBrowseFolder);
			this.Controls.Add(this.checkBoxProcessEvents);
			this.Controls.Add(this.checkBoxCollectCells);
			this.Controls.Add(this.numericUpDownTimerFrequency);
			this.Controls.Add(this.labelTimerFrequency);
			this.Menu = this.mainMenu1;
			this.Text = "Settings";

		}
		#endregion

		public void UpdateChanges()
		{
			ConfigManager.UpdateFrequency = Convert.ToInt32( numericUpDownTimerFrequency.Value );
			ConfigManager.ChartWrapLimit = Convert.ToInt32( numericUpDownChartWidth.Value );
			ConfigManager.CollectCells = checkBoxCollectCells.Checked;
			ConfigManager.ProcessEvents = checkBoxProcessEvents.Checked;
			ConfigManager.ComPort = comboBoxComPort.SelectedIndex;
			ConfigManager.ExpandSip = checkBoxExpandSip.Checked;
			ConfigManager.ShowDBMChart = checkBoxShowdBMChart.Checked;
			ConfigManager.ShowDBMValue = checkBoxShowdBMValue.Checked;
			ConfigManager.ShowLacCiInHex = checkBoxShowHex.Checked;

			if ( textBoxCellDbPath.Text != ConfigManager.DBLocation )
			{
				string fromFolder = ConfigManager.DBLocation;
				string toFolder = textBoxCellDbPath.Text;

				if ( fromFolder.Substring( fromFolder.Length - 1, 1 ) == "\\" )
					fromFolder = fromFolder.Substring( 0, fromFolder.Length - 1 );

				if ( toFolder.Substring( toFolder.Length - 1, 1 ) == "\\" && toFolder.Length > 1 )
					toFolder = toFolder.Substring( 0, fromFolder.Length - 1 );

				if ( Directory.Exists( fromFolder ) )
					if ( Directory.Exists( toFolder ) )
						File.Move( fromFolder + "\\" + CellDB.Filename, toFolder + "\\" + CellDB.Filename );
					else
						MessageBox.Show( "New folder does not exist : \n\n" + toFolder );

				else
					MessageBox.Show( "Original folder does not exist" );
			}

			ConfigManager.DBLocation = textBoxCellDbPath.Text;

		}

		private void buttonBrowseFolder_Click(object sender, System.EventArgs e)
		{
			FolderDialog fd = new FolderDialog();
			fd.SelectedPath = textBoxCellDbPath.Text;
			if ( fd.ShowDialog() == DialogResult.OK )
			{
				textBoxCellDbPath.Text = fd.SelectedPath;
			}

		}

		private void buttonCancel_Click(object sender, System.EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			this.Close();
		}

		private void buttonDetect_Click(object sender, System.EventArgs e)
		{
			int detectedPort = -1;

			try
			{
				buttonDetect.Enabled = false;

				detectedPort = GSMLib.DetectModem();
			}
			catch ( Exception )
			{				
			}
			finally
			{
				buttonDetect.Enabled = true;
			}

			if ( detectedPort != -1 )
			{
				MessageBox.Show( "Modem found on " + "COM" + detectedPort.ToString() + ":" );
				this.comboBoxComPort.SelectedIndex = detectedPort;
			}
			else
			{				
				MessageBox.Show( "Modem not found, please restart the application and try again." );
			}
			
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产无人区一区二区三区| 日韩久久免费av| 亚洲影视在线播放| 在线观看91精品国产入口| 亚洲另类在线制服丝袜| 欧美探花视频资源| 日本aⅴ精品一区二区三区| 日韩午夜在线播放| 国产成人自拍在线| 亚洲精选视频免费看| 欧美久久久影院| 国产在线播精品第三| 国产精品久99| 中文字幕精品一区二区精品绿巨人| 国产成人aaa| 播五月开心婷婷综合| 激情久久五月天| 国产日韩av一区| 99免费精品视频| 欧美精品xxxxbbbb| 色综合夜色一区| 99re免费视频精品全部| 国产精品综合一区二区三区| 麻豆91小视频| 美洲天堂一区二卡三卡四卡视频| 亚洲v日本v欧美v久久精品| 精品国产不卡一区二区三区| 91丨九色丨黑人外教| 国产传媒欧美日韩成人| 激情成人综合网| 麻豆精品国产传媒mv男同| 亚洲高清免费一级二级三级| 亚洲综合视频在线观看| 亚洲精品国产无套在线观| 中文字幕综合网| 亚洲人成伊人成综合网小说| 国产精品国产三级国产三级人妇 | 久久99国产乱子伦精品免费| 五月综合激情日本mⅴ| 婷婷久久综合九色国产成人 | 日日骚欧美日韩| 亚洲成a人片综合在线| 亚洲国产裸拍裸体视频在线观看乱了 | 欧美极品另类videosde| 久久久91精品国产一区二区精品| 国产亚洲欧美激情| 欧美激情一区二区三区全黄| 国产精品美女久久久久久久久| 国产欧美一区二区在线观看| 国产精品久久久久国产精品日日| 亚洲天堂精品视频| 亚洲国产视频一区| 青娱乐精品在线视频| 老司机精品视频导航| 国产在线国偷精品免费看| 国产精品香蕉一区二区三区| 99久久国产免费看| 欧美三级午夜理伦三级中视频| 在线91免费看| 久久精品免视看| 亚洲柠檬福利资源导航| 亚洲亚洲人成综合网络| 蜜桃视频免费观看一区| 国产99久久久国产精品免费看| av电影天堂一区二区在线 | 色综合网色综合| 欧美精品日日鲁夜夜添| 337p日本欧洲亚洲大胆精品| 亚洲欧美怡红院| 日本不卡一区二区| 高清视频一区二区| 欧美综合一区二区| 精品久久久久久久一区二区蜜臀| 国产精品美女www爽爽爽| 午夜日韩在线电影| 国产一区日韩二区欧美三区| 91麻豆国产福利在线观看| 6080午夜不卡| 国产精品色婷婷| 日韩在线一区二区| 国产黑丝在线一区二区三区| 日本精品视频一区二区| 欧美电影免费观看高清完整版在线| 国产精品乱子久久久久| 日本网站在线观看一区二区三区| 国产成人午夜精品5599| 欧美久久久久久久久久| 国产精品亲子伦对白| 日韩一区欧美二区| 99久久99久久免费精品蜜臀| 欧美成人官网二区| 亚洲综合一二区| 床上的激情91.| 欧美精品精品一区| 亚洲人成精品久久久久| 国产一区二区三区香蕉| 欧美日韩精品专区| 亚洲欧美日韩综合aⅴ视频| 国产一区二区精品久久91| 欧美少妇xxx| 中文字幕五月欧美| 国产一区二区三区不卡在线观看| 欧美专区在线观看一区| 国产人伦精品一区二区| 精品一区二区三区视频在线观看| 欧美色网一区二区| 日本一区二区三区dvd视频在线 | 久久疯狂做爰流白浆xx| 欧美日韩中文字幕一区| 中文字幕在线不卡一区二区三区| 麻豆久久一区二区| 欧美精品在线观看播放| 亚洲精品国产一区二区精华液 | 色呦呦网站一区| 国产女人aaa级久久久级| 免费三级欧美电影| 欧美日韩精品一区二区三区蜜桃| 中文字幕中文字幕在线一区| 国产69精品一区二区亚洲孕妇| 日韩三级伦理片妻子的秘密按摩| 无吗不卡中文字幕| 欧美性猛交xxxxxx富婆| 一区二区三区欧美久久| 色婷婷精品久久二区二区蜜臂av| 亚洲国产岛国毛片在线| 国产一区二区三区精品视频| 日韩三级.com| 青青草成人在线观看| 8x8x8国产精品| 蜜臀av一区二区在线观看| 欧美日本精品一区二区三区| 亚洲成人av福利| 欧美日韩一二三区| 亚洲国产乱码最新视频| 欧美日韩一级二级| 午夜精品视频在线观看| 欧美人妇做爰xxxⅹ性高电影| 亚洲国产一二三| 91精品午夜视频| 蜜臀久久99精品久久久久宅男| 欧美一区二区三区在线| 日韩电影在线观看一区| 91精品在线观看入口| 日韩不卡在线观看日韩不卡视频| 欧美一区二区三区在| 国产一区二区三区四区五区入口 | 一区二区成人在线视频| 欧美色精品在线视频| 性久久久久久久久久久久| 91精品国产福利| 国产一区二区三区在线观看免费| 国产三级一区二区| 97久久精品人人做人人爽50路| 亚洲精品亚洲人成人网| 欧美日韩精品一区二区在线播放| 日本在线观看不卡视频| www久久精品| 国产91综合一区在线观看| 成人欧美一区二区三区视频网页| 欧美亚洲精品一区| 精品一区在线看| 国产精品久久久久久久午夜片| 91热门视频在线观看| 日韩精品一级二级 | 亚洲一区二区三区四区的| 欧美美女一区二区在线观看| 狠狠色丁香久久婷婷综合_中| 中文字幕欧美日本乱码一线二线| 91免费国产在线观看| 午夜不卡在线视频| 国产日韩欧美亚洲| 欧洲视频一区二区| 国产精品一区在线观看乱码| 亚洲免费伊人电影| 日韩一区二区电影在线| 成人av在线资源网| 日韩黄色免费电影| 亚洲国产岛国毛片在线| 在线不卡的av| 成人精品视频网站| 日韩国产欧美视频| 国产精品每日更新| 日韩一区二区三| 91蜜桃视频在线| 黄网站免费久久| 亚洲综合在线五月| 国产丝袜美腿一区二区三区| 欧美日韩国产高清一区二区| 国产成人综合在线观看| 日韩精品三区四区| 亚洲色图.com| 久久综合久久综合亚洲| 欧美精品久久久久久久多人混战| 成人午夜精品一区二区三区| 日韩精品国产精品| 国产精品久久精品日日| 精品av久久707| 欧美日韩精品免费| 91丝袜高跟美女视频| 国产高清在线精品|