Exemplo n.º 1
0
 private void siGamalBarButton_Click(Office.CommandBarButton ctrl, ref bool cancel)
 {
     try
     {
         SiGamal view = new SiGamal();
         view.ShowDialog();
         if (view.isSign)
             SignEmail(view.key.GeneratePrivateKey());
         else
             VerifyEmail(view.pubKey);
     }
     catch (System.Exception ex)
     {
         System.Windows.Forms.MessageBox.Show("Error " + ex.Message.ToString());
     }
 }
Exemplo n.º 2
0
 private void siGamalBarButton_Click(Office.CommandBarButton ctrl, ref bool cancel)
 {
     try
     {
         SiGamal view = new SiGamal();
         view.ShowDialog();
         if (view.isSign)
         {
             SignEmail(view.key.GeneratePrivateKey());
         }
         else
         {
             VerifyEmail(view.pubKey);
         }
     }
     catch (System.Exception ex)
     {
         System.Windows.Forms.MessageBox.Show("Error " + ex.Message.ToString());
     }
 }