mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-14 17:28:29 -05:00
git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@192 9f600761-6f11-4665-b6dc-0185e9171623
25 lines
584 B
C#
25 lines
584 B
C#
using System;
|
|
using System.Windows;
|
|
using System.Windows.Input;
|
|
|
|
namespace Samples.Tutorials.Commands
|
|
{
|
|
/// <summary>
|
|
/// A simple command that displays the command parameter as
|
|
/// a dialog message.
|
|
/// </summary>
|
|
public class ShowMessageCommand : ICommand
|
|
{
|
|
public void Execute(object parameter)
|
|
{
|
|
MessageBox.Show(parameter.ToString());
|
|
}
|
|
|
|
public bool CanExecute(object parameter)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public event EventHandler CanExecuteChanged;
|
|
}
|
|
} |