예제 #1
0
        public void Redraw()
        {
            ColisionHelper.CalculateRoadPosition(line, first, second);

            foreach (var bus in buses)
            {
                bus.Redraw();
            }
        }
예제 #2
0
        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();
            }
        }