cleanup
[GitHub/Stricted/SpeedportHybridControl.git] / SpeedportHybridControl.Implementations / DelegateCommand.cs
index b50634f0b899114a18fac1ecadf0e469dc0dad4d..1a760de76041a5c98e83afe06d22fea25a828a3e 100644 (file)
@@ -1,22 +1,27 @@
 using System;
 using System.Windows.Input;
 
-namespace SpeedportHybridControl.Implementations {
-       public class DelegateCommand : ICommand {
-               private Action _executeMethod;
+namespace SpeedportHybridControl.Implementations
+{
+    public class DelegateCommand : ICommand
+    {
+        private Action _executeMethod;
 
-               public DelegateCommand (Action executeMethod) {
-                       _executeMethod = executeMethod;
-               }
+        public DelegateCommand(Action executeMethod)
+        {
+            _executeMethod = executeMethod;
+        }
 
-               public bool CanExecute (object parameter = null) {
-                       return true;
-               }
+        public bool CanExecute(object parameter = null)
+        {
+            return true;
+        }
 
-               public event EventHandler CanExecuteChanged;
+        public event EventHandler CanExecuteChanged;
 
-               public void Execute (object parameter = null) {
-                       _executeMethod.Invoke();
-               }
-       }
+        public void Execute(object parameter = null)
+        {
+            _executeMethod.Invoke();
+        }
+    }
 }