예제 #1
0
        public override void Run(Progress progress)
        {
            progress.Begin(myBBB.EntryCount);

            for (int i = 0; i < myBBB.EntryCount; ++i)
            {
                progress.Info = myBBB.get_Entries(i).FileName;

                myBBB.ExtractFile(myPath, myBBB.get_Entries(i));

                progress.Update();
            }

            progress.End();
        }
예제 #2
0
        public void Build(BBBFile bbb, Progress progress)
        {
            myBBB = bbb;

            TreeNode root = new TreeNode();

            root.Text = "Files";

            treeView.Nodes.Add(root);

            progress.Begin(myBBB.EntryCount);

            for (int i = 0; i < myBBB.EntryCount; ++i)
            {
                BBBEntry entry = myBBB.get_Entries(i);

                string name = entry.FileName;

                name += string.Format(" ({0})", entry.FileSize);

                AddToTree(root, name, name);

                progress.Update();
            }

            progress.End();
        }
예제 #3
0
 public bool HasFile(string fileName)
 {
     return(myBBB.get_Entries(
                Database.GetRelativeFileName(fileName)) != null);
 }