public CommandResult ShowKeyGenWizard()
        {
            KeyGenWizard dlg = new KeyGenWizard();

            GCUtil.ShowModalDialog(_frame, dlg);
            return(CommandResult.Success);
        }
Beispiel #2
0
        private static CommandResult CmdGenerateKeyPair(ICommandTarget target)
        {
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);

            Debug.Assert(window != null);

            KeyGenWizard dlg = new KeyGenWizard();
            DialogResult r   = dlg.ShowDialog(window.AsForm());

            return(r == DialogResult.OK ? CommandResult.Succeeded : CommandResult.Cancelled);
        }