コード例 #1
0
 public static bool ShowEnterPassPhraseDialog(string DomainID, SimiasWebService simws)
 {
     bool status = false;
      EnterPassPhraseDialog epd = new EnterPassPhraseDialog(DomainID, simws);
       if (!Util.RegisterModalWindow(epd))
      {
       epd.Destroy();
        epd = null;
        return false;
       }
       try
       {
     status = PassphraseHelper( epd, DomainID, simws);
     if( !status )
         return status;
       }
       catch(Exception ex)
       {
     iFolderMsgDialog dialog = new iFolderMsgDialog(
         null,
         iFolderMsgDialog.DialogType.Error,
         iFolderMsgDialog.ButtonSet.None,
         Util.GS("Unable to set the passphrase"),
         Util.GS(ex.Message),
         Util.GS("Please enter the passphrase again"));
     dialog.Run();
     dialog.Hide();
     dialog.Destroy();
     dialog = null;
        return false;
       }
       return status;
 }