public DataPlug(string productFamily) { if (string.IsNullOrEmpty(productFamily)) { throw new SystemException(ErrorHandler.FixMessage("ProductFamily not specified")); } _productFamily = productFamily; _serverName = DataSettings.GetServerName(productFamily); _databaseName = DataSettings.GetDatabaseName(productFamily); _connectionString = SQL.GetConnectionString(_serverName, _databaseName); }
static void ShowProductFamily(string productFamily) { Console.WriteLine($"{productFamily}:"); string ArenaServer = DataSettings.GetServerName(productFamily); Console.WriteLine($" Server Name = {ArenaServer}"); string ArenaDatabase = DataSettings.GetDatabaseName(productFamily); Console.WriteLine($" Database Name = {ArenaDatabase}"); Console.WriteLine(); }