private void LoadData() { foreach (string file in _files) { if (!File.Exists(file)) { continue; } DataGetter data = new DataGetter(file); Type t = data.GetTypeFromData(); if (t == typeof(CaseProgress)) { Progress.Add(file, (CaseProgress)data.ConvertToObject()); } if (t == typeof(CSIData)) { CSIData.Add(file, (CSIData)data.ConvertToObject()); } if (t == typeof(CurrentCaseData)) { CurrentData.Add(file, (CurrentCaseData)data.ConvertToObject()); } if (t == typeof(EntityData)) { EntityData.Add(file, (EntityData)data.ConvertToObject()); } if (t == typeof(EvidenceData)) { EvidenceData.Add(file, (EvidenceData)data.ConvertToObject()); } if (t == typeof(InterrogationData)) { InterrogationData.Add(file, (InterrogationData)data.ConvertToObject()); } if (t == typeof(SceneData)) { SceneData.Add(file, (SceneData)data.ConvertToObject()); } if (t == typeof(StageData)) { StageData.Add(file, (StageData)data.ConvertToObject()); } if (t == typeof(WrittenData)) { WrittenData.Add(file, (WrittenData)data.ConvertToObject()); } } }