|
|
|
@ -45,9 +45,13 @@ namespace Mystify.ViewModels |
|
|
|
Filters = new List<FileDialogFilter> {new() {Extensions = new List<string> {DriverLoader.DRIVER_FILE_EXTENSION}, Name = "Mystify Driver"}} |
|
|
|
Filters = new List<FileDialogFilter> {new() {Extensions = new List<string> {DriverLoader.DRIVER_FILE_EXTENSION}, Name = "Mystify Driver"}} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
await openFileDialog.ShowAsync(_mainWindow); |
|
|
|
string driverPath = (await openFileDialog.ShowAsync(_mainWindow))[0]; |
|
|
|
|
|
|
|
|
|
|
|
_mainModel?.LoadDriverAndDevice(openFileDialog.Directory); |
|
|
|
_mainModel?.LoadDriverAndDevice(driverPath); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RaisePropertyChanged(() => SelectedDeviceText); |
|
|
|
|
|
|
|
RaisePropertyChanged(() => Channels); |
|
|
|
|
|
|
|
RaisePropertyChanged(() => Controllables); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
public ICommand AllocateControllableCommand => |
|
|
|
public ICommand AllocateControllableCommand => |
|
|
|
|