private static IEnumerable <string> AskUserToSelectFiles(IEnumerable <string> fileNamesToConvert)
        {
            var rm             = new ResourceManager("ConvertAspxToRazorRecipe.g", typeof(Resources).Assembly);
            var filesToConvert = (from f in fileNamesToConvert select new FileToConvert {
                FullFileName = f, FileName = Path.GetFileName(f)
            }).ToList();
            var picker         = new FilesPicker {
                DataContext = filesToConvert
            };
            var window = new Window
            {
                Content       = picker,
                SizeToContent = SizeToContent.Height,
                Icon          = BitmapFrame.Create(rm.GetStream("lambda3.ico", Resources.Culture)),
                Width         = 400,
                Title         = "Convert ASPX to Razor",
                MinHeight     = picker.MinHeight + 50,
                MinWidth      = picker.MinWidth + 50
            };
            var result = window.ShowDialog();

            if (result != null && !result.Value)
            {
                return(new List <string>());
            }
            var selectedFiles = (from f in filesToConvert where f.Checked select f.FullFileName).ToList();

            return(selectedFiles);
        }
 private static IEnumerable<string> AskUserToSelectFiles(IEnumerable<string> fileNamesToConvert)
 {
     var rm = new ResourceManager("ConvertAspxToRazorRecipe.g", typeof(Resources).Assembly);
     var filesToConvert = (from f in fileNamesToConvert select new FileToConvert { FullFileName = f, FileName = Path.GetFileName(f) }).ToList();
     var picker = new FilesPicker { DataContext = filesToConvert };
     var window = new Window
                      {
                          Content = picker,
                          SizeToContent = SizeToContent.Height,
                          Icon = BitmapFrame.Create(rm.GetStream("lambda3.ico", Resources.Culture)),
                          Width = 400,
                          Title = "Convert ASPX to Razor",
                          MinHeight = picker.MinHeight + 50,
                          MinWidth = picker.MinWidth + 50
                      };
     var result = window.ShowDialog();
     if (result != null && !result.Value)
         return new List<string>();
     var selectedFiles = (from f in filesToConvert where f.Checked select f.FullFileName).ToList();
     return selectedFiles;
 }