Esempio n. 1
0
 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;
         }
     });
 }
Esempio n. 2
0
 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;
     });
 }