private static bool setPath(string dbDir) { bool result = false; string dbFilePath = dbDir + "\\" + Properties.Settings.Default.DBFileName; if (File.Exists(dbFilePath)) { try { AppDomain.CurrentDomain.SetData("DataDirectory", dbDir); result = DBquery.goodPath(); } catch { result = false; } } return result; }