refactor start

This commit is contained in:
BuildTools
2020-07-20 14:49:16 +02:00
parent 7444847902
commit 0b63483f31
9 changed files with 29 additions and 82 deletions

View File

@@ -41,9 +41,10 @@ namespace opdracht2
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == true)
{
Tuple<List<Polygon>, List<Ellipse>> t = GeoJsonParser.TriangulateJsonData(File.ReadAllText(openFileDialog.FileName), c.Width, c.Height);
f = t.Item1;
el = t.Item2;
//TODO remove
//Tuple<List<Polygon>, List<Ellipse>> t = GeoJsonParser.TriangulateJsonData(File.ReadAllText(openFileDialog.FileName), c.Width, c.Height);
f = GeoJsonParser.TriangulateJsonData(File.ReadAllText(openFileDialog.FileName), c.Width, c.Height);
el = new List<Ellipse>();
}
var st = new ScaleTransform();
c.RenderTransform = st;