private void SaveEditCurrentCustomTarget() { EditCustomTarget.Save(); if (!CustomTargets.Contains(EditCustomTarget)) { CustomTargets.Add(EditCustomTarget); } CurrentCustomTarget = EditCustomTarget; IsCustomTargetEditor = false; EditCustomTarget = null; Start.OnCanExecuteChanged(); }
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" }); }