示例#1
0
 private void OnRecoveryMenuItem(object o, EventArgs args)
 {
     DomainInformation[] domains = this.domainController.GetLoggedInDomains();
                 if( domains == null)
                 {
                         iFolderMsgDialog dialog = new iFolderMsgDialog(
                                                                                                         null,
                                                                                                         iFolderMsgDialog.DialogType.Error,
                                                                                                         iFolderMsgDialog.ButtonSet.None,
                                                                                                         Util.GS("No Logged-In domains"),
                                                                                                         Util.GS("There are no logged-in domains for resetting keys."),
                                                                                                         Util.GS("For resetting the passphrase the domain should be connected. Log on to the domain and try."));
                                 dialog.Run();
                                 dialog.Hide();
                                 dialog.Destroy();
                                 dialog = null;
                                 return;
                         }
                 KeyRecoveryWizard krw = new KeyRecoveryWizard(simws,ifws);
                  krw.TransientFor = this;
                 if (!Util.RegisterModalWindow(krw))
                 {
                         try
                         {
                                 Util.CurrentModalWindow.Present();
                         }
                         catch{}
                         krw.Destroy();
                         return;
                 }
                 krw.ShowAll();
 }
 public static void Push( KeyRecoveryWizard a )
 {
     k.Push(a);
 }