reattach progressbar & label

Closes #345
This commit is contained in:
Kurt
2018-06-10 10:55:49 -07:00
parent b2a4788f4d
commit 3c412f0a0f

View File

@@ -51,10 +51,12 @@ private static void GARC_UnpackProgressed(object sender, GARC.UnpackProgressedEv
public static bool garcPackMS(string folderPath, string garcPath, int version, int bytesPadding, ProgressBar pBar1 = null, Label label = null, bool supress = false)
{
GarcUtil.pBar1 = pBar1;
GarcUtil.label = label;
GARC.FileCountDetermined += GARC_FileCountDetermined;
GARC.PackProgressed += GARC_PackProgressed;
try
{
{
var filectr = GARC.garcPackMS(folderPath, garcPath, version, bytesPadding);
if (filectr > 0)
{
@@ -90,6 +92,8 @@ public static bool garcPackMS(string folderPath, string garcPath, int version, i
public static bool garcUnpack(string garcPath, string outPath, bool skipDecompression, ProgressBar pBar1 = null, Label label = null, bool supress = false, bool bypassExt = false)
{
GarcUtil.pBar1 = pBar1;
GarcUtil.label = label;
GARC.FileCountDetermined += GARC_FileCountDetermined;
GARC.UnpackProgressed += GARC_UnpackProgressed;
try