private async void AddCollectionPoint(MapPoint point) { var guid = await AddGraphicToMap(point, ColorFactory.RedRGB, true, 7); var addInPoint = new AddInPoint() { Point = point, GUID = guid }; CoordinateAddInPoints.Add(addInPoint); }
private async void AddCollectionPoint(MapPoint point, Dictionary <string, Tuple <object, bool> > fieldsDictionary = null) { var guid = await AddGraphicToMap(point, ColorFactory.Instance.RedRGB, true, 7); var addInPoint = new AddInPoint() { Point = point, GUID = guid, FieldsDictionary = fieldsDictionary }; //Add point to the top of the list CoordinateAddInPoints.Add(addInPoint); }
public override void OnDisplayCoordinateTypeChanged(CoordinateConversionLibrary.Models.CoordinateConversionLibraryConfig obj) { base.OnDisplayCoordinateTypeChanged(obj); // update list box coordinates var list = CoordinateAddInPoints.ToList(); CoordinateAddInPoints.Clear(); foreach (var item in list) { CoordinateAddInPoints.Add(item); } }
private void AddCollectionPoint(IPoint point) { var color = new RgbColorClass() { Red = 255 } as IColor; var guid = ArcMapHelpers.AddGraphicToMap(point, color, true, esriSimpleMarkerStyle.esriSMSCircle, 7); var addInPoint = new AddInPoint() { Point = point, GUID = guid }; CoordinateAddInPoints.Add(addInPoint); GraphicsList.Add(new AMGraphic(guid, point, true)); }
private void AddCollectionPoint(IPoint point, Dictionary <string, Tuple <object, bool> > fieldsDictionary = null) { if (point != null && !point.IsEmpty) { var color = (IColor) new RgbColorClass() { Red = 255 }; var guid = ArcMapHelpers.AddGraphicToMap(point, color, true, esriSimpleMarkerStyle.esriSMSCircle, ArcMapHelpers.DefaultMarkerSize); var addInPoint = new AddInPoint() { Point = point, GUID = guid, FieldsDictionary = fieldsDictionary }; //Add point to the top of the list CoordinateAddInPoints.Add(addInPoint); GraphicsList.Add(new AMGraphic(guid, point, true, fieldsDictionary)); } }