private void Move(Way newWay) { ways.Add(newWay); currentPosition.X = newWay.End.X; currentPosition.Y = newWay.End.Y; }
private bool Equals(Way other) { return((Equals(Start, other.Start) && Equals(End, other.End)) || (Equals(Start, other.End) && Equals(End, other.Start))); }