AcornPublishing_wpf/9780735619579-master/AppsCodeMarkup/Chapter 22/YellowPad/YellowPadWindow.Help.cs
//-----------------------------------------------------
// YellowPadWindow.Help.cs (c) 2006 by Charles Petzold
//-----------------------------------------------------
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace Petzold.YellowPad
{
    public partial class YellowPadWindow : Window
    {
        // Help command: display YellowPadHelp as modeless dialog.
        void HelpOnExecuted(object sender, ExecutedRoutedEventArgs args)
        {
            YellowPadHelp win = new YellowPadHelp();
            win.Owner = this;
            win.Show();
        }
        // About command: display YellowPadAboutDialog.
        void AboutOnClick(object sender, RoutedEventArgs args)
        {
            YellowPadAboutDialog dlg = new YellowPadAboutDialog();
            dlg.Owner = this;
            dlg.ShowDialog();
        }
    }
}
