public static SignedFeed Run([NotNull] IOpenPgp openPgp, [CanBeNull] IWin32Window owner = null) { using (var wizard = new NewFeedWizard(openPgp)) { wizard.ShowDialog(owner); return(wizard._signedFeed); } }
public static SignedFeed Run([NotNull] IOpenPgp openPgp, [CanBeNull] IWin32Window owner = null) { using (var wizard = new NewFeedWizard(openPgp)) { wizard.ShowDialog(owner); return wizard._signedFeed; } }
private void buttonNewWizard_Click(object sender, EventArgs e) { var result = NewFeedWizard.Run(_openPgp, this); if (result != null) { SwitchToMain(new FeedEditing(result)); } }
private void menuNewWizard_Click(object sender, EventArgs e) { try { AskForChangeSave(); var result = NewFeedWizard.Run(_openPgp, this); if (result != null) { FeedEditing = new FeedEditing(result); } } catch (OperationCanceledException) {} }
/// <summary> /// Runs the wizard. /// </summary> /// <param name="openPgp">Used to get a list of <see cref="OpenPgpSecretKey"/>s.</param> /// <param name="owner">The parent window the displayed window is modal to; can be <c>null</c>.</param> /// <returns>The feed generated by the wizard; <c>null</c> if the user canceled.</returns> public static SignedFeed?Run(IOpenPgp openPgp, IWin32Window?owner = null) { using var wizard = new NewFeedWizard(openPgp); wizard.ShowDialog(owner); return(wizard._signedFeed); }