public ModelDataVM(ModelData modelData) { this.modelData = modelData; Models = new ObservableCollection<ModelVM>(modelData.Models.Select(model => new ModelVM(this, model))); Default = Models.FirstOrDefault(model => model.model.GUID == modelData.Default); FileName = modelData.FileName; }
static public List<ModelResult> ExtractData(BinaryData data, long start, long current, long end, ModelData modelData, string model) { var extractor = new ModelDataExtractor(data, start, current, end, modelData); extractor.HandleModel(model); return extractor.results; }
ModelDataExtractor(BinaryData data, long start, long current, long end, ModelData modelData) { this.data = data; this.start = start; this.end = end; currentByte = current; this.modelData = modelData; }