//Application routines private void ShowConnectionStringForm() { PFConnectionManager connMgr = null; DatabasePlatform dbPlat = DatabasePlatform.Unknown; ConnectionStringPrompt cp = null; try { if (this.optSQLServer.Checked) { dbPlat = DatabasePlatform.MSSQLServer; } else if (this.optSQLServerCE35.Checked) { dbPlat = DatabasePlatform.SQLServerCE35; } else if (this.optSQLServerCE40.Checked) { dbPlat = DatabasePlatform.SQLServerCE40; } else if (this.optMicrosoftAccess.Checked) { dbPlat = DatabasePlatform.MSAccess; } else if (this.optODBC.Checked) { dbPlat = DatabasePlatform.ODBC; } else if (this.optOLEDB.Checked) { dbPlat = DatabasePlatform.OLEDB; } else if (this.optOracleNative.Checked) { dbPlat = DatabasePlatform.OracleNative; } else if (this.optMySQL.Checked) { dbPlat = DatabasePlatform.MySQL; } else if (this.optDB2.Checked) { dbPlat = DatabasePlatform.DB2; } else if (this.optInformix.Checked) { dbPlat = DatabasePlatform.Informix; } else if (this.optSybase.Checked) { dbPlat = DatabasePlatform.Sybase; } else if (this.optSQLAnywhere.Checked) { dbPlat = DatabasePlatform.SQLAnywhere; } else if (this.optSQLAnywhereUL.Checked) { dbPlat = DatabasePlatform.SQLAnywhereUltraLite; } else if (this.optMSOracle.Checked) { dbPlat = DatabasePlatform.MSOracle; } else { dbPlat = DatabasePlatform.SQLServerCE35; } connMgr = new PFConnectionManager(); cp = new ConnectionStringPrompt(dbPlat, connMgr); cp.ConnectionString = string.Empty; System.Windows.Forms.DialogResult res = cp.ShowConnectionPrompt(); } catch (System.Exception ex) { _msg.Length = 0; _msg.Append(AppGlobals.AppMessages.FormatErrorMessage(ex)); AppMessages.DisplayErrorMessage(_msg.ToString()); } finally { ; } }