public void Redraw() { ColisionHelper.CalculateRoadPosition(line, first, second); foreach (var bus in buses) { bus.Redraw(); } }
private void Activate() { line = new Line(); line.Stroke = Brushes.Black; line.StrokeThickness = 5; ColisionHelper.CalculateRoadPosition(line, first, second); view.Content = line; canvas.Children.Add(view); if (isLocked) { Lock(); } else { Unlock(); } }