コード例 #1
0
        public void ExtractAndMerge(string outputPath, IExtractProgress progress)
        {
            foreach (var child in Children)
            {
                if (progress.CancellationToken.IsCancellationRequested)
                {
                    break;
                }

                child.Extract(outputPath, progress);
            }
        }
コード例 #2
0
        public override void Extract(string outputPath, IExtractProgress progress)
        {
            foreach (var child in Children)
            {
                if (progress.CancellationToken.IsCancellationRequested)
                {
                    break;
                }

                child.Extract(Path.Combine(outputPath, ShortName), progress);
            }
        }
コード例 #3
0
        public override void Extract(string outputPath, IExtractProgress progress)
        {
            var childOutputPath = Path.Combine(outputPath, Name);

            Directory.CreateDirectory(childOutputPath);

            foreach (var child in Children)
            {
                if (progress.CancellationToken.IsCancellationRequested)
                {
                    break;
                }

                progress.SetExtractedName(childOutputPath);
                child.Extract(childOutputPath, progress);
            }
        }
コード例 #4
0
ファイル: RootViewModel.cs プロジェクト: tommadness/OpenKh
        public void ExtractAndMerge(string outputPath, IExtractProgress progress)
        {
            foreach (var child in Children)
            {
                if (progress.CancellationToken.IsCancellationRequested)
                {
                    break;
                }

                var childOutputPath = Path.Combine(outputPath, ShortName);
                if (child is IdxViewModel idxVm)
                {
                    idxVm.ExtractAndMerge(childOutputPath, progress);
                }
                else
                {
                    child.Extract(childOutputPath, progress);
                }
            }
        }
コード例 #5
0
 public abstract void Extract(string outputPath, IExtractProgress progress);