- refactoring

master
Simon G 5 years ago
parent 3a9ef52c85
commit 9430da8d4a
  1. 11
      Mystify/ViewModels/MainWindowViewModel.cs

@ -54,11 +54,10 @@ namespace Mystify.ViewModels
RaisePropertyChanged(() => Controllables); RaisePropertyChanged(() => Controllables);
}); });
public ICommand AllocateControllableCommand => public ICommand AllocateControllableCommand => ReactiveCommand.Create(() =>
ReactiveCommand.Create(() => {
{ if (SelectedControllable != null)
if (SelectedControllable != null) SelectedChannel?.AllocateControllable(SelectedControllable);
SelectedChannel?.AllocateControllable(SelectedControllable); });
});
} }
} }

Loading…
Cancel
Save