private void bnsdat_DoWork(object sender, DoWorkEventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
            BNSDat BnsDat = new BNSDat();

            BnsDat.Extract(usedfilepath, BNSis64, Dispaly);
            // set task as completed
            waitbw.Set();
        }
        private void bnsdatc_DoWork(object sender, DoWorkEventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
            BNSDat BnsDat = new BNSDat();

            //ProgressBar progressBar = new ProgressBar();
            BnsDat.Compress(usedfilepathonly, BNSis64, Dispaly);
            // set task as completed
            waitbw.Set();
        }