private void OnCellChanged() { int cell = Grid.PosToCell(this); if (!Grid.IsValidCell(cell)) { base.enabled = false; } else if (Sim.IsValidHandle(simHandle)) { SimMessages.MoveElementChunk(simHandle, cell); } }