Esempio n. 1
0
        private void startBtn_Click(object sender, EventArgs e)
        {
            if (punzip == postUnzip.Move && (movebrowse.Text == ""))
            {
                MessageBox.Show("Please select a path");
            }
            else if (punzip == postUnzip.Move && !(movebrowse.Text == ""))
            {
                mPath = movepath.Text;
            }

            startBtn.Visible = false;
            stopBtn.Visible  = true;
            UnzipFunctions.initialscan(zipLocale.Text, outputPath.Text, punzip);
            fileSystemWatcher1.Path   = zipLocale.Text;
            fileSystemWatcher1.Filter = "*.zip";
            fileSystemWatcher1.EnableRaisingEvents = true;
        }
Esempio n. 2
0
 private void fileSystemWatcher1_Renamed(object sender, System.IO.RenamedEventArgs e)
 {
     UnzipFunctions.unzipFile(e.FullPath, outputPath.Text, System.IO.Path.GetFileNameWithoutExtension(e.FullPath), punzip);
 }