public void Load(String path) { if (File.Exists(path)) { using (Stream stream = Capture.Open(path)) { DataResponse response = DataResponse.Create(stream); if (response != null) { if (response.ResponseType == DataResponse.Type.SummaryPack) { Load(new SummaryPack(response)); } } } } }
public void Load(String path) { if (File.Exists(path)) { var option = new ArchiveOption { Mode = ArchiveMode.Open, Pipeline = ArchivePipeline.Internel }; ArchiveFactory.Instance().Archive(ref option); using (option.InternelStream) { DataResponse response = DataResponse.Create(option.InternelStream); if (response != null) { if (response.ResponseType == DataResponse.Type.SummaryPack) { Load(new SummaryPack(response)); } } } } }