日期:2014-05-17 浏览次数:20858 次
Sqlconnwords.Text = ConfigurationManager.ConnectionStrings["Sqlconnwords"].ToString();
PrimaryRecApIP.Text = ConfigurationManager.AppSettings["PrimaryRecApIP"];
PrimaryRecApPort.Text = ConfigurationManager.AppSettings["PrimaryRecApPort"];
BackupRecApIP.Text = ConfigurationManager.AppSettings["BackupRecApIP"];
SQWords.Text = ConfigurationManager.AppSettings["SQWords"];
BackupRecApPort.Text = ConfigurationManager.AppSettings["BackupRecApIP"];
LocalIp.Text = ConfigurationManager.AppSettings["BackupRecApIP"];
LocalPort.Text = ConfigurationManager.AppSettings["BackupRecApIP"];
MaxRetry.Text = ConfigurationManager.AppSettings["MaxRetry"];
DelayTime.Text = ConfigurationManager.AppSettings["DelayTime"];
BatchCount.Text = ConfigurationManager.AppSettings["BatchCount"];
resetTimePicker.Text = ConfigurationManager.AppSettings["resetTimePicker"];
disconTimePicker.Text = ConfigurationManager.AppSettings["disconTimePicker"];
NodeName.Text = ConfigurationManager.AppSettings["NodeName"];
LogType.Text = ConfigurationManager.AppSettings["LogType"];
RecordLength.Text = ConfigurationManager.AppSettings["RecordLength"];
MarketType.Text = ConfigurationManager.AppSettings["MarketType"];
LogPath.Text = ConfigurationManager.AppSettings["LogPath"];
DataPath.Text = ConfigurationManager.AppSettings["DataPath"];
Dictionary<string, string> dict = new Dictionary<string, string>();
foreach (string key in ConfigurationManager.AppSettings.AllKeys)
dict.Add("key.Text", ConfigurationManager.AppSettings[key]);//该怎么将值传递