private void btnOk_Click(object sender, EventArgs e) { if (m_bCreateNew) { if (pgProperties.Item["Asset Name"].Value.ToString() != "") { m_assetName = pgProperties.Item["Asset Name"].Value.ToString(); if (cbIsNative.Checked) { CreateNativeAssetTables(); } else //if (pgProperties.Item["Server"] == null || pgProperties.Item["Database"] == null || pgProperties.Item["Provider"] == null || pgProperties.Item["View"] == null) { CreateNonNativeAsset(); } } else { Global.WriteOutput("Error: Please fill in the 'Asset Name' property before continuing."); return; } } else { // Add/Remove the columns in the respective lists using // a SQL ALTER TABLE statement. DBMgr.AddTableColumns(m_assetName, m_columnsToAdd); DBMgr.RemoveTableColumns(m_assetName, m_columnsToRemove); } DialogResult = DialogResult.OK; if (DialogResult == DialogResult.OK) { //RoadCare3.Properties.Settings.Default.PROVIDER_DIU = pgProperties.Item["Provider"].Value.ToString(); //RoadCare3.Properties.Settings.Default.SERVER_DIU = pgProperties.Item["Server"].Value.ToString(); //RoadCare3.Properties.Settings.Default.DATABASE_DIU = pgProperties.Item["Database"].Value.ToString(); //RoadCare3.Properties.Settings.Default.USERNAME_DIU = pgProperties.Item["User Name"].Value.ToString(); // Save the property settings Properties.Settings.Default.Save(); } }