public IdentifyDatabaseForm()
{
InitializeComponent();
FileInfo fi = new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
fi = new FileInfo(Path.Combine(fi.DirectoryName, "installsettings.xml"));
if (fi.Exists)
{
XmlDocument document = new XmlDocument();
document.Load(fi.FullName);
chkSaveSettings.Checked = true;
comboBoxConnectionServerName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "server", comboBoxConnectionServerName.Text);
radioButtonConnectionIntegratedSecurity.Checked = XmlHelper.GetNodeValue(document.DocumentElement, "useintegratedsecurity", radioButtonConnectionIntegratedSecurity.Checked);
radioButtonConnectionUserPassword.Checked = !radioButtonConnectionIntegratedSecurity.Checked;
textBoxConnectionUserName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "username", textBoxConnectionUserName.Text);
textBoxConnectionPassword.Text = XmlHelper.GetNodeValue(document.DocumentElement, "password", textBoxConnectionPassword.Text);
comboBoxConnectionDatabaseName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "database", comboBoxConnectionDatabaseName.Text);
comboBoxCreationServerName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "server", comboBoxCreationServerName.Text);
textBoxCreationDatabaseName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "database", textBoxCreationDatabaseName.Text);
radioButtonCreationIntegratedSecurity.Checked = XmlHelper.GetNodeValue(document.DocumentElement, "useintegratedsecurity", radioButtonCreationIntegratedSecurity.Checked);
radioButtonCreationUserPassword.Checked = !radioButtonCreationIntegratedSecurity.Checked;
textBoxCreationUserName.Text = XmlHelper.GetNodeValue(document.DocumentElement, "username", textBoxCreationUserName.Text);
textBoxCreationPassword.Text = XmlHelper.GetNodeValue(document.DocumentElement, "password", textBoxCreationPassword.Text);
}
}