Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GMapMarker"/> class.
 /// </summary>
 /// <param name="info">The info.</param>
 /// <param name="context">The context.</param>
 protected GMapMarker(SerializationInfo info, StreamingContext context)
 {
     this.Position           = Extensions.GetStruct <PointLatLng>(info, "Position", PointLatLng.Empty);
     this.Tag                = Extensions.GetValue <object>(info, "Tag", null);
     this.Offset             = Extensions.GetStruct <Point>(info, "Offset", Point.Empty);
     this.area               = Extensions.GetStruct <Rectangle>(info, "Area", Rectangle.Empty);
     this.ToolTip            = Extensions.GetValue <GMapToolTip>(info, "ToolTip", null);
     this.ToolTipMode        = Extensions.GetStruct <MarkerTooltipMode>(info, "ToolTipMode", MarkerTooltipMode.OnMouseOver);
     this.ToolTipText        = info.GetString("ToolTipText");
     this.IsVisible          = info.GetBoolean("Visible");
     this.DisableRegionCheck = info.GetBoolean("DisableregionCheck");
     this.IsHitTestVisible   = info.GetBoolean("IsHitTestVisible");
 }
Esempio n. 2
0
        public virtual void Dispose()
        {
            if (!disposed)
            {
                disposed = true;

                Tag = null;

                if (ToolTip != null)
                {
                    toolTipText = null;
                    ToolTip.Dispose();
                    ToolTip = null;
                }
            }
        }