From 9430da8d4a63e6597ed37cc10c73aa8720e1763b Mon Sep 17 00:00:00 2001 From: Simon G Date: Sat, 10 Apr 2021 17:15:54 +0200 Subject: [PATCH] - refactoring --- Mystify/ViewModels/MainWindowViewModel.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Mystify/ViewModels/MainWindowViewModel.cs b/Mystify/ViewModels/MainWindowViewModel.cs index c2f3ed0..d165719 100644 --- a/Mystify/ViewModels/MainWindowViewModel.cs +++ b/Mystify/ViewModels/MainWindowViewModel.cs @@ -54,11 +54,10 @@ namespace Mystify.ViewModels RaisePropertyChanged(() => Controllables); }); - public ICommand AllocateControllableCommand => - ReactiveCommand.Create(() => - { - if (SelectedControllable != null) - SelectedChannel?.AllocateControllable(SelectedControllable); - }); + public ICommand AllocateControllableCommand => ReactiveCommand.Create(() => + { + if (SelectedControllable != null) + SelectedChannel?.AllocateControllable(SelectedControllable); + }); } }