private void AddHeadLandToMap(List <MyPoint3D> headLand) { VM.LineVM line = new LineVM(); line.Locations = new LocationCollection(); foreach (var p in headLand) { line.Locations.Add(p.ToGeo().ToLocation()); } GuidanceLines.Add(line); }
void setCanProcessField() { if (selectedField == null || flagA == null || flagB == null) { CanProcessField = false; } else { CanProcessField = true; } if (flagA != null && flagB != null) { AB_Lines.Clear(); VM.LineVM line = new LineVM(); line.Locations = new LocationCollection(); line.Locations.Add(flagA.Location); line.Locations.Add(flagB.Location); AB_Lines.Add(line); } }