private void PasswordRequired(object sender, CompressionPasswordRequiredEventArgs e) { this.Invoke((MethodInvoker) delegate() { frmPassword dlg = new frmPassword(); if (dlg.ShowDialog(this) == DialogResult.OK) { e.Password = dlg.txtPassword.Text; e.ContinueOperation = true; } else { e.ContinueOperation = false; } }); }
private void PasswordRequired(object sender, CompressionPasswordRequiredEventArgs e) { this.Invoke((MethodInvoker)delegate() { frmPassword dlg = new frmPassword(); if (dlg.ShowDialog() == DialogResult.OK) { e.Password = dlg.txtPassword.Text; e.ContinueOperation = true; } else e.ContinueOperation = false; }); }