private void zipPreviewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ZipPreviewer.ZipPreviewer zipPreviewer = new ZipPreviewer.ZipPreviewer();
     zipPreviewer.Show();
 }
        private void priv_btn_Click(object sender, EventArgs e)
        {
            Uri url = new Uri(URLTextBox.Text);
            string fileName = url.LocalPath;
            ZipPreviewer.ZipPreviewer zip_preview;
            MediaPreviewer.MediaPreviewer media_preview;
            if (fileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase))
            {
                zip_preview = new ZipPreviewer.ZipPreviewer(url.ToString());
                zip_preview.Show();
            }
            else if (MediaPreviewer.MediaPreviewer.isMediaFile(fileName))
            {
                DownloaderWithRanges dm = new DownloaderWithRanges(url.ToString());
                ResponseRecord record = dm.fetchFile(0, 1024 * 1024);

                String tmpFileName = Application.StartupPath + "/tmp/" + url.LocalPath;
                DownloadedFileHandler dfh = new DownloadedFileHandler();
                dfh.save(tmpFileName, record.ResponseStream);

                Thread.Sleep(300);
                media_preview = new MediaPreviewer.MediaPreviewer(tmpFileName);
                media_preview.Show();
            }
            else
            {
                setStatusMessage("Preview is not available for" + url);
            }
        }