Commits

Christian Specht committed e7a40fe Draft

move CloseCommand to BaseViewModel

  • Participants
  • Parent commits 139b412

Comments (0)

Files changed (2)

File src/MissileSharp.Launcher/ViewModels/BaseViewModel.cs

 using System.ComponentModel;
+using System.Windows;
+using System.Windows.Input;
 
 namespace MissileSharp.Launcher.ViewModels
 {
                 handler(this, new PropertyChangedEventArgs(name));
             }
         }
+
+        public ICommand CloseCommand
+        {
+            get { return new RelayCommand(o => ((Window)o).Close()); }
+        }
     }
 }

File src/MissileSharp.Launcher/ViewModels/MessageBoxWindowViewModel.cs

-using System.Windows;
-using System.Windows.Input;
-
+
 namespace MissileSharp.Launcher.ViewModels
 {
     public class MessageBoxWindowViewModel : BaseViewModel
                 OnPropertyChanged("MessageText");
             }
         }
-
-        public ICommand CloseCommand
-        {
-            get { return new RelayCommand(o => ((Window)o).Close()); }
-        }
     }
 }