- update function call with own property

master
Simon G 5 years ago
parent 46af4cdec4
commit f3ae089969
  1. 4
      Mystify/MainModel.cs
  2. 2
      Mystify/ViewModels/MainWindowViewModel.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()

@ -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);

Loading…
Cancel
Save