Example #1
0
 void OnDecryptAttachmentClicked(object sender, ProtectAttachmentEventArgs e)
 {
     var rc = sender as AttachmentRiskControl;
     if (rc != null)
     {
         rc.Enabled = false;
         _presenter.DecryptAttachment(e.Attachment, new InlineProtectContentEncryptionUI(this));
         rc.Enabled = true;
     }
 }
 private void OnDecryptAttachmentClicked(object sender, ProtectAttachmentEventArgs e)
 {
     var rc = sender as AttachmentRiskControl;
     if (rc != null)
     {
         _presenter.DecryptAttachment(e.Attachment, new InlineProtectContentEncryptionUI(this));
     }
 }