/* Initialize the node */ public void init() { genreTypeNodes = new Dictionary <GenreType, NodeInfo>(); reader = new CSVReader(PATH, '~', "\""); // Both a blessing and a curse reader.debugCategories(); movies = MovieInfo.generateFromReader(reader); foreach (GenreType gT in System.Enum.GetValues(typeof(GenreType))) { NodeInfo gen; gen.type = NodeType.genre; gen.name = gT.getName(); gen.genreType = gT; gen.details = gT.getDescription(); genreTypeNodes.Add(gT, gen); } }