Beispiel #1
0
        private void OnRemoveFolderExecute(object parameter)
        {
            var folders = (parameter as IList).Cast <VstDirectory>();

            foreach (var folder in folders.ToList())
            {
                VstDirectories.Remove(folder);
            }
        }
Beispiel #2
0
 private async Task OnAddFolderExecute()
 {
     if (await _selectDirectoryService.DetermineDirectoryAsync())
     {
         VstDirectories.Add(new VstDirectory()
         {
             Path = _selectDirectoryService.DirectoryName
         });
     }
 }
Beispiel #3
0
 private void OnAddDefaultVstFoldersExecute()
 {
     foreach (var i in VstPathScanner.getCommonVSTPluginDirectories())
     {
         if (!(from path in VstDirectories where path.Path == i select path).Any())
         {
             VstDirectories.Add(new VstDirectory()
             {
                 Path = i
             });
         }
     }
 }