本文整理汇总了C#中GMapRoute.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# GMapRoute.Dispose方法的具体用法?C# GMapRoute.Dispose怎么用?C# GMapRoute.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GMapRoute
的用法示例。
在下文中一共展示了GMapRoute.Dispose方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: domainUpDown1_ValueChanged
//.........这里部分代码省略.........
a++;
}
}
}
catch { }
}
else
{
if (item.Tag != "SM" && item.Tag != "ME")
strips++;
if (CHK_markers.Checked)
{
var marker = new GMapMarkerWP(item, a.ToString()) { ToolTipText = a.ToString(), ToolTipMode = MarkerTooltipMode.OnMouseOver };
routesOverlay.Markers.Add(marker);
}
segment.Add(prevpoint);
segment.Add(item);
prevpoint = item;
a++;
}
GMapRoute seg = new GMapRoute(segment, "segment" + a.ToString());
seg.Stroke = new Pen(Color.Yellow, 4);
seg.Stroke.DashStyle = System.Drawing.Drawing2D.DashStyle.Custom;
seg.IsHitTestVisible = true;
routetotal = routetotal + (float)seg.Distance;
if (CHK_grid.Checked)
{
routesOverlay.Routes.Add(seg);
}
else
{
seg.Dispose();
}
segment.Clear();
}
if (CHK_footprints.Checked)
routesOverlay.Markers.Add(GMapMarkerOverlap);
/* Old way of drawing route, incase something breaks using segments
GMapRoute wproute = new GMapRoute(list2, "GridRoute");
wproute.Stroke = new Pen(Color.Yellow, 4);
if (chk_grid.Checked)
routesOverlay.Routes.Add(wproute);
*/
// turn radrad = tas^2 / (tan(angle) * G)
float v_sq = (float)(((float)NUM_UpDownFlySpeed.Value / CurrentState.multiplierspeed) * ((float)NUM_UpDownFlySpeed.Value / CurrentState.multiplierspeed));
float turnrad = (float)(v_sq / (float)(9.808f * Math.Tan(35 * deg2rad)));
// Update Stats
if (DistUnits == "Feet")
{
// Area
float area = (float)calcpolygonarea(list) * 10.7639f; // Calculate the area in square feet
lbl_area.Text = area.ToString("#") + " ft^2";
if (area < 21780f)
{
lbl_area.Text = area.ToString("#") + " ft^2";
}
else
{
area = area / 43560f;
if (area < 640f)