A wizard guiding the user through creating a new Feed.
Inheritance: System.Windows.Forms.Form
コード例 #1
0
 public static SignedFeed Run([NotNull] IOpenPgp openPgp, [CanBeNull] IWin32Window owner = null)
 {
     using (var wizard = new NewFeedWizard(openPgp))
     {
         wizard.ShowDialog(owner);
         return(wizard._signedFeed);
     }
 }
コード例 #2
0
 public static SignedFeed Run([NotNull] IOpenPgp openPgp, [CanBeNull] IWin32Window owner = null)
 {
     using (var wizard = new NewFeedWizard(openPgp))
     {
         wizard.ShowDialog(owner);
         return wizard._signedFeed;
     }
 }
コード例 #3
0
        private void buttonNewWizard_Click(object sender, EventArgs e)
        {
            var result = NewFeedWizard.Run(_openPgp, this);

            if (result != null)
            {
                SwitchToMain(new FeedEditing(result));
            }
        }
コード例 #4
0
        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)
            {}
        }
コード例 #5
0
 /// <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);
 }