コード例 #1
0
        void eh_Completed(object sender, ExportEventArgs e)
        {
            this.Text = "匯出壓縮檔";
            string content = e.Result;

            if (checkBox1.Checked)
            {
                CompressUtil.CompressStringToFile(txtFileName.Text, e.Result, txtPassword.Text);
            }
            else
            {
                CompressUtil.CompressStringToFile(txtFileName.Text, e.Result);
            }

            if (Completed != null)
            {
                Completed.Invoke(this, EventArgs.Empty);
            }

            this.Close();
        }