/// <summary>
 /// Permite editar las propiedades del tipo de celda seleccionado.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void pboxCellPreview_Click(object sender, EventArgs e)
 {
     if (lstCells.SelectedIndex != -1)
      {
     editCellDialog = new DlgEditCell(cellList[lstCells.SelectedIndex]);
     if (editCellDialog.ShowDialog() == DialogResult.OK)
     {
        int selected = lstCells.SelectedIndex;
        UpdateCellList();
        lstCells.SelectedIndex = selected;
        pboxGrid.Invalidate();
     }
      }
 }
 /// <summary>
 /// Permite crear una nueva celda.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void menuAddNewCell_Click(object sender, EventArgs e)
 {
     editCellDialog = new DlgEditCell(cellList);
      if (editCellDialog.ShowDialog() == DialogResult.OK)
     UpdateCellList();
 }