예제 #1
0
        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"
            });
        }
예제 #2
0
 private void PresetTargets_Selected(ImportTargetPreset target)
 {
     Start.OnCanExecuteChanged();
 }