示例#1
0
        private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            List <Point> selectedPoints  = DrawIt.getSelectedPoints();
            int          last_addedPoint = selectedPoints.Count - 1;
            int          x = (int)selectedPoints[last_addedPoint].X;
            int          y = (int)selectedPoints[last_addedPoint].Y;

            _UserSteeringConsole.CreateLife(new LifeAddressM(x, y));
        }
示例#2
0
        private void Start_Click(object sender, RoutedEventArgs e)
        {
            List <Point> selectedPoints = DrawIt.getSelectedPoints();

            selectedPoints.ForEach(point => _UserSteeringConsole.CreateLife(new LifeAddressM((int)point.X, (int)point.Y)));
            if (comboBox1.SelectedIndex == 0)
            {
                ContinuesExecution();
                return;
            }
            OneCycleUp();
        }