void propertiesTree_BeforeCellEdit(object sender, CellEditEventArgs e)
        {
            e.Cell.TagString = e.Cell.Text;

            if (e.Cell.Text == newPropertyText)
                e.Cell.Text = String.Empty;
        }
 void propertiesTree_AfterCellEditComplete(object sender, CellEditEventArgs e)
 {
     if (e.Cell.TagString == newPropertyText)
     {
         if (e.Cell.Text.Length == 0)
         {
             e.Cell.Text = newPropertyText;
         }
         else
         {
             propertiesList.SelectedNode.Cells[1].Editable = true;
             addProperty();
         }
     }
 }
 /// <summary>
 /// Called when a layer is renamed via dbl click
 /// </summary>
 void renameLayer(object sender, CellEditEventArgs e)
 {
     world.RenameLayer(selectedForWorld, e.NewText);
 }