From f3ae0899693f7560964986a7094e2b9daba166f1 Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 14 Apr 2021 10:31:54 +0200 Subject: [PATCH] - update function call with own property --- Mystify/MainModel.cs | 4 ++-- Mystify/ViewModels/MainWindowViewModel.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mystify/MainModel.cs b/Mystify/MainModel.cs index fdc0ff2..a6c9008 100644 --- a/Mystify/MainModel.cs +++ b/Mystify/MainModel.cs @@ -35,7 +35,7 @@ namespace Mystify public bool UseMidiView { get; set; } - public void LoadDriverAndDevice(string driverPath, bool useMidiView) + public void LoadDriverAndDevice(string driverPath) { IDriver? driver = _driverLoader.Load(driverPath); @@ -45,7 +45,7 @@ namespace Mystify _device = _deviceFactory.Create(driver); _controllableCollector = _controllableCollectorFactory.Create(); - _device.StartCommunication(useMidiView); + _device.StartCommunication(UseMidiView); } public void MapControllable() diff --git a/Mystify/ViewModels/MainWindowViewModel.cs b/Mystify/ViewModels/MainWindowViewModel.cs index bb251c5..333510f 100644 --- a/Mystify/ViewModels/MainWindowViewModel.cs +++ b/Mystify/ViewModels/MainWindowViewModel.cs @@ -74,7 +74,7 @@ namespace Mystify.ViewModels string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0]; - _mainModel?.LoadDriverAndDevice(driverPath, UseMidiView); + _mainModel?.LoadDriverAndDevice(driverPath); RaisePropertyChanged(() => SelectedDeviceText); RaisePropertyChanged(() => Channels);