private void Demo() { PresetTargets = new ImportTargetPreset[] { new ImportTargetPreset { IsSelected = false, Target = new FileSourceProfile() { FilePath = @"C:\Test\test.xls" } }, new ImportTargetPreset { IsSelected = false, Target = new FileSourceProfile() { FilePath = @"D:\Data\test.txt" } }, new ImportTargetPreset { IsSelected = false, Target = new FileSourceProfile() { FilePath = @"D:\some other directory\*.xml" } } }; CustomTargets.Add(new CustomImportTargetViewModel { FilePath = @"c:\Some\1.xls" }); CustomTargets.Add(new CustomImportTargetViewModel { FilePath = @"c:\Some\1.xls" }); }
private void PresetTargets_Selected(ImportTargetPreset target) { Start.OnCanExecuteChanged(); }