|
|
|
@ -35,6 +35,7 @@ namespace Mystify.ViewModels |
|
|
|
|
|
|
|
|
|
|
|
public IChannel? SelectedChannel { get; set; } |
|
|
|
public IChannel? SelectedChannel { get; set; } |
|
|
|
public IControllable? SelectedControllable { get; set; } |
|
|
|
public IControllable? SelectedControllable { get; set; } |
|
|
|
|
|
|
|
public bool UseMidiView { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public string SelectedDeviceText => $"Selected Device: {_mainModel?.DeviceName ?? "-"}"; |
|
|
|
public string SelectedDeviceText => $"Selected Device: {_mainModel?.DeviceName ?? "-"}"; |
|
|
|
|
|
|
|
|
|
|
|
@ -47,7 +48,7 @@ namespace Mystify.ViewModels |
|
|
|
|
|
|
|
|
|
|
|
string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0]; |
|
|
|
string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0]; |
|
|
|
|
|
|
|
|
|
|
|
_mainModel?.LoadDriverAndDevice(driverPath); |
|
|
|
_mainModel?.LoadDriverAndDevice(driverPath, UseMidiView); |
|
|
|
|
|
|
|
|
|
|
|
RaisePropertyChanged(() => SelectedDeviceText); |
|
|
|
RaisePropertyChanged(() => SelectedDeviceText); |
|
|
|
RaisePropertyChanged(() => Channels); |
|
|
|
RaisePropertyChanged(() => Channels); |
|
|
|
|