private void pictureBox3_Click(object sender, EventArgs e) { System.Windows.Forms.SaveFileDialog openFileDialog1 = new System.Windows.Forms.SaveFileDialog(); openFileDialog1.Filter = "zip文件(*.zip)|*.zip"; string savePath = ""; if (openFileDialog1.ShowDialog() == DialogResult.OK) { savePath = openFileDialog1.FileName; } else if (openFileDialog1.ShowDialog() == DialogResult.Cancel) { return; } ZipClass zip = new ZipClass(); zip.ZipFileFromDirectory(Globals.ThisAddIn.exerciseJsonPath + "Temp3\\" + paperNameReal, savePath, 0); this.label3.Visible = true; timer.Start(); }