public BoardSettings(object boardID) { m_boardID = boardID; DataTable dt; // get the board table dt = DB.board_list(boardID); m_board = dt.Rows[0]; m_reg = new RegistryHash(); m_regBoard = new RegistryHash(); // get all the registry values for the forum using (dt = DB.registry_list()) { // get all the registry settings into our hash table foreach (DataRow dr in dt.Rows) { if (dr["Value"] == DBNull.Value) { m_reg.Add(dr["Name"].ToString().ToLower(), null); } else { m_reg.Add(dr["Name"].ToString().ToLower(), dr["Value"]); } } } using (dt = DB.registry_list(null, boardID)) { // get all the registry settings into our hash table foreach (DataRow dr in dt.Rows) { if (dr["Value"] == DBNull.Value) { m_regBoard.Add(dr["Name"].ToString().ToLower(), null); } else { m_regBoard.Add(dr["Name"].ToString().ToLower(), dr["Value"]); } } } }
public BoardSettings(object boardID) { m_boardID = boardID; DataTable dt; // get the board table dt = DB.board_list(boardID); m_board = dt.Rows[0]; m_reg = new RegistryHash(); m_regBoard = new RegistryHash(); // get all the registry values for the forum using(dt = DB.registry_list()) { // get all the registry settings into our hash table foreach(DataRow dr in dt.Rows) { if (dr["Value"] == DBNull.Value) { m_reg.Add(dr["Name"].ToString().ToLower(),null); } else { m_reg.Add(dr["Name"].ToString().ToLower(),dr["Value"]); } } } using(dt = DB.registry_list(null,boardID)) { // get all the registry settings into our hash table foreach(DataRow dr in dt.Rows) { if (dr["Value"] == DBNull.Value) { m_regBoard.Add(dr["Name"].ToString().ToLower(),null); } else { m_regBoard.Add(dr["Name"].ToString().ToLower(),dr["Value"]); } } } }