/// <summary>
 /// Iterates through the given Hashset and updates the cells in the view.
 /// </summary>
 /// <param name="cellNames"></param>
 private void UpdateCells(IEnumerable <string> cellNames)
 {
     foreach (var cellName in cellNames)
     {
         GuiCell cell = new GuiCell(cellName);
         _window.UpdateCell(cell.CellColumn, cell.CellRow, cell.GetCellValue(Spreadsheet));
         if (SelectedCell.CellName == cell.CellName)
         {
             _window.CellValueBoxText = SelectedCell.GetCellContents(Spreadsheet);
         }
     }
 }