private void UpdateFeedback()
{
// for now lets stick with only updating feedback here with Bearing and Distance case
if (LineFromType != LineFromTypes.BearingAndDistance)
return;
if(Point1 != null && HasPoint1)
{
if(feedback == null)
{
var mxdoc = ArcMap.Application.Document as IMxDocument;
CreateFeedback(Point1, mxdoc.FocusMap as IActiveView);
feedback.Start(Point1);
}
// now get second point from distance and bearing
var construct = new Polyline() as IConstructGeodetic;
if (construct == null)
return;
construct.ConstructGeodeticLineFromDistance(GetEsriGeodeticType(), Point1, GetLinearUnit(), Distance, GetAzimuthAsDegrees(), esriCurveDensifyMethod.esriCurveDensifyByDeviation, -1.0);
var line = construct as IPolyline;
if (line.ToPoint != null)
{
FeedbackMoveTo(line.ToPoint);
Point2 = line.ToPoint;
}
}
}