public MainWindow() { DataContext = this; InitializeComponent(); model = ModelConfigurations.InitNormalModel(); CostCalculationService.InitializeASD(); LoadDataFromModel(); simulation.Model = model; simulation.ModelChanged += ModelChangeHandler; Paint(); }
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); } }