CHG Moved files to new root folder.

This commit is contained in:
Philipp Sumi
2013-11-25 15:43:33 +01:00
parent e409e784e6
commit 6b07fab725
116 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.Windows;
using System.Windows.Input;
namespace Samples.Commands
{
/// <summary>
/// Closes the current window.
/// </summary>
public class CloseWindowCommand : CommandBase<CloseWindowCommand>
{
public override void Execute(object parameter)
{
GetTaskbarWindow(parameter).Close();
CommandManager.InvalidateRequerySuggested();
}
public override bool CanExecute(object parameter)
{
Window win = GetTaskbarWindow(parameter);
return win != null;
}
}
}