示例#1
0
        private static CommandResult CmdChangePassphrase(ICommandTarget target)
        {
            IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
            Debug.Assert(window != null);

            ChangePassphrase dlg = new ChangePassphrase();
            DialogResult r = dlg.ShowDialog(window.AsForm());
            return r == DialogResult.OK ? CommandResult.Succeeded : CommandResult.Cancelled;
        }
 public CommandResult ShowChangePassphraseDialog()
 {
     ChangePassphrase dlg = new ChangePassphrase();
     GCUtil.ShowModalDialog(_frame, dlg);
     return CommandResult.Success;
 }