/// <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; } }
/// <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; } }
/// <summary> /// Adds one word into ditionary file. /// </summary> /// <param name="word"></param> public void AddWordToDictionary(WordViewModel word) { model.AddWordToDictionary(word.Word); }
/// <summary> /// Adds one word into ditionary file. /// </summary> /// <param name="word"></param> public void AddWordToDictionary(WordViewModel word) { model.AddWordToDictionary(word.Word); }