private static void SetDBConnection() { var cnstring = PWCOSTINGV1.Properties.Settings.Default.cnString; SetBALConnection.SetConnectionString(cnstring); TestConnection(); }
private void TestConnection() { try { AssignRecords(true); SetBALConnection.SetConnectionString(AppConnectionString.ConnectionString); compbal = new CompanyBAL(); comp = compbal.GetByID(1); AppSettings.CompanyProfile = comp; } catch (Exception ex) { throw ex; } }