Esempio n. 1
0
        public static void GetSupportedDatabasesList(MainForm frm)
        {
            PFList <string> dblist = null;

            try
            {
                _msg.Length = 0;
                _msg.Append("GetSupportedDatabasesList started ...\r\n");
                Program._messageLog.WriteLine(_msg.ToString());

                dblist = PFDatabase.GetListOfSupportedDatabases();

                string tab = null;

                dblist.SetToBOF();

                while ((tab = dblist.NextItem) != null)
                {
                    if (tab.ToUpper() != "UNKNOWN")
                    {
                        _msg.Length = 0;
                        _msg.Append(tab);
                        Program._messageLog.WriteLine(_msg.ToString());
                    }
                }
            }
            catch (System.Exception ex)
            {
                _msg.Length = 0;
                _msg.Append(AppGlobals.AppMessages.FormatErrorMessage(ex));
                Program._messageLog.WriteLine(_msg.ToString());
                AppMessages.DisplayErrorMessage(_msg.ToString(), _saveErrorMessagesToAppLog);
            }
            finally
            {
                _msg.Length = 0;
                _msg.Append("\r\n... GetSupportedDatabasesList finished.");
                Program._messageLog.WriteLine(_msg.ToString());
            }
        }