private
{
ADSHost = ConfigurationSettings.AppSettings["DThost"];
ADSPort = ConfigurationSettings.AppSettings["DTport"];
agentID = Convert.ToInt32(ConfigurationSettings.AppSettings["PERuserID"]);
extension = Convert.ToInt32(ConfigurationSettings.AppSettings["extension"]);
instrument = Convert.ToInt16(ConfigurationSettings.AppSettings["instrument"]);
password = ConfigurationSettings.AppSettings["password"];
macroName = ConfigurationSettings.AppSettings["macroName"];
fieldName = ConfigurationSettings.AppSettings["fieldName"];
maxLogFiles = Convert.ToInt16(ConfigurationSettings.AppSettings["PERmaxLogFiles"]);
loggingLevel = Convert.ToInt16(ConfigurationSettings.AppSettings["PERloggingLevel"]);
}
MessageBox.Show("Please configure the desktop application.");
Application.Exit();