Ejemplo n.º 1
0
 public MainWindow()
 {
     DataContext = this;
     InitializeComponent();
     model = ModelConfigurations.InitNormalModel();
     CostCalculationService.InitializeASD();
     LoadDataFromModel();
     simulation.Model         = model;
     simulation.ModelChanged += ModelChangeHandler;
     Paint();
 }
Ejemplo n.º 2
0
        public void MoveEveryLineInNormal()
        {
            m = ModelConfigurations.InitNormalModel();
            _Line        l     = null;
            List <_Line> lines = m.AllLinesFlat();

            for (var i = 0; i < lines.Count; i++)
            {
                l = lines[i];
                m.MoveLine(10, l);
                m.MoveLine(-10, l);
                m.MoveLine(-10, l);
                m.MoveLine(10, l);
            }
        }