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