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 = info.GetStruct<PointLatLng>("Position", PointLatLng.Empty);
    this.Tag = info.GetValue<object>("Tag", null);
    this.Offset = info.GetStruct<Point>("Offset", Point.Empty);
    this.area = info.GetStruct<Rectangle>("Area", Rectangle.Empty);
    this.ToolTip = info.GetValue<GMapToolTip>("ToolTip", null);
    this.ToolTipMode = info.GetStruct<MarkerTooltipMode>("ToolTipMode", MarkerTooltipMode.OnMouseOver);
    this.ToolTipText = info.GetString("ToolTipText");
    this.IsVisible = info.GetBoolean("Visible");
    this.DisableRegionCheck = info.GetBoolean("DisableregionCheck");
    this.IsHitTestVisible = info.GetBoolean("IsHitTestVisible");
 }