public void Refresh() { _boxes = _savedVariablesParser.GetByName("frames").Fields.ConvertAll(_boxBuilder.BuildFromParse) .OrderBy(s => s.Index) .ToList(); _boxDictionary = new Dictionary <string, List <Box> >(); _logger.Information("Loaded Boxes from Saved Variables.."); }
public BoxMgr(SavedVariablesParser savedVariablesParser, BoxBuilder boxBuilder) { _savedVariablesParser = savedVariablesParser; _boxBuilder = boxBuilder; _boxes = _savedVariablesParser.GetByName("frames").Fields.ConvertAll(_boxBuilder.BuildFromParse) .OrderBy(s => s.Index) .ToList(); }