private void LoadPreloadedFiles(List <ObjectTreeNode> nodes)
        {
            ProgressWindow.Start(() =>
            {
                foreach (var node in nodes)
                {
                    ProgressWindow.Update($"Opening {ArchiveFileInfo.FileName}", 0, true);

                    ArchiveFileInfo.FileFormat = ArchiveFileInfo.OpenFile();
                    if (ArchiveFileInfo.FileFormat != null)
                    {
                        var fileNode = ObjectListWrapperLoader.OpenFormat(new ImageList(), ArchiveFileInfo.FileFormat);
                        node.Tag     = ArchiveFileInfo.FileFormat;
                        foreach (var child in fileNode.Children)
                        {
                            AddChild(child);
                        }
                    }
                }

                ProgressWindow.Wait(1000);
                ProgressWindow.Update($"Finished!", 100);
                ProgressWindow.CloseProgressBar();
            });
        }
예제 #2
0
 private void ExtractFiles(string folder, List <ArchiveFileInfo> archiveFiles)
 {
     for (int i = 0; i < archiveFiles.Count; i++)
     {
         var counter = (i * 100) / archiveFiles.Count;
         ProgressWindow.Update($"Extracting {archiveFiles[i].FileName}", counter);
         archiveFiles[i].FileWrite($"{folder}/{archiveFiles[i].FileName}");
     }
     ProgressWindow.Wait(1000);
     ProgressWindow.Update($"Finished!", 100);
     ProgressWindow.CloseProgressBar();
 }
 private void ProgressFinished()
 {
     ProgressWindow.CloseProgressBar();
 }
예제 #4
0
 public static void HideProgressBar()
 {
     ProgressWindow.CloseProgressBar();
 }