void UpdateCounters() { int index = 1; foreach (IBlackboardObject bo in Objects.Select (o => (o as ICanvasDrawableObject).IDrawableObject)) { if (bo is Counter) { (bo as Counter).Count = index; index++; } } }