| 12345678910111213141516171819202122232425262728293031323334353637 |
- using GalaSoft.MvvmLight.Command;
- using System.Windows;
- namespace Muchinfo.MTPClient.Infrastructure.Windows
- {
- public class DialogWindowCommands
- {
- private static RelayCommand<Window> _closeCommand = new RelayCommand<Window>((w) =>
- {
- if (null == w) return;
- w.Close();
- });
- private static RelayCommand<Window> _dragMoveCommand = new RelayCommand<Window>((w) =>
- {
- if (null == w) return;
- try
- {
- w.DragMove();
- }
- catch { }
- });
- public static RelayCommand<Window> Close
- {
- get { return _closeCommand; }
- }
- public static RelayCommand<Window> DragMove
- {
- get { return _dragMoveCommand; }
- }
- }
- }
|