Beispiel #1
0
        /// <summary>
        /// Marks the files that contain the word.
        /// </summary>
        /// <param name="word"></param>
        public void HighlightFilesWithWord(WordViewModel word)
        {
            // Remove previously highlighted files
            RemoveHighlighting();
            // Request list of file names from model
            List <string> pathNames = model.GetFilenamesWithWord(word.Word);
            // Select files to highlight
            var filesToHighLight = Files.Where(i => pathNames.Contains(i.FilePath));

            foreach (FileStatsViewModel file in filesToHighLight)
            {
                file.Highlighted = true;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Marks the files that contain the word.
 /// </summary>
 /// <param name="word"></param>
 public void HighlightFilesWithWord(WordViewModel word)
 {
     // Remove previously highlighted files
     RemoveHighlighting();
     // Request list of file names from model
     List<string> pathNames = model.GetFilenamesWithWord(word.Word);
     // Select files to highlight
     var filesToHighLight = Files.Where(i => pathNames.Contains(i.FilePath));
     foreach (FileStatsViewModel file in filesToHighLight)
     {
         file.Highlighted = true;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Adds one word into ditionary file.
 /// </summary>
 /// <param name="word"></param>
 public void AddWordToDictionary(WordViewModel word)
 {
     model.AddWordToDictionary(word.Word);
 }
Beispiel #4
0
 /// <summary>
 /// Adds one word into ditionary file.
 /// </summary>
 /// <param name="word"></param>
 public void AddWordToDictionary(WordViewModel word)
 {
     model.AddWordToDictionary(word.Word);
 }