/// <summary> /// display content and values of selection /// </summary> /// <param name="sender"></param> private void displaySelection(SpreadsheetPanel sender) { string name = GetCellName(); if (model.GetCellContents(name).GetType().ToString() == "System.String" && model.GetCellValue(name).GetType().ToString() == "System.Double") { window.setContentBox("=" + model.GetCellContents(name).ToString()); } else { window.setContentBox(model.GetCellContents(name).ToString()); } window.setValueBox(model.GetCellValue(name).ToString()); window.setCellBox(GetCellName()); updateCell(name); }