protected override void Shrink() { LinkedListNode <Tail>[] lastNodes = SnakeUtils.GetLastNodes(TailList, IsShrinking); for (int i = 0; i < lastNodes.Length; i++) { SLTail tail = (SLTail)lastNodes[i].Value; tail.TailImage.Visibility = Visibility.Collapsed; } base.Shrink(); }
public override void OnShrinking(object sender, SnakeEventArgs e) { LinkedListNode <Tail>[] lastNodes = SnakeUtils.GetLastNodes(TailList, e.Value); for (int i = 0; i < lastNodes.Length; i++) { SLTail tail = (SLTail)lastNodes[i].Value; tail.IsShrinking = true; } base.OnShrinking(sender, e); }