public KeyGenThread(KeyGenWizard p, PublicKeyAlgorithm a, int b) { _parent = p; _algorithm = a; _bitCount = b; _rnd = new KeyGenRandomGenerator(); }
public KeyGenThread(KeyGenWizard p, PublicKeyAlgorithm a, int b) { _parent = p; _algorithm = a; _bitCount = b; _rnd = new KeyGenRandomGenerator(); }
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; }
public CommandResult ShowKeyGenWizard() { KeyGenWizard dlg = new KeyGenWizard(); GCUtil.ShowModalDialog(_frame, dlg); return CommandResult.Success; }