Demo.WindowsForms/Forms/MainForm.cs

(开头部分) 75KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Globalization;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
using System.Threading;
using System.Windows.Forms;
using System.Xml;
using Demo.WindowsForms.CustomMarkers;
using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsForms;
using GMap.NET.WindowsForms.Markers;
using GMap.NET.WindowsForms.ToolTips;

namespace Demo.WindowsForms
{
   public partial class MainForm : Form
   {
      // layers
      readonly GMapOverlay top = new GMapOverlay();
      internal readonly GMapOverlay objects = new GMapOverlay("objects");
      internal readonly GMapOverlay routes = new GMapOverlay("routes");
      internal readonly GMapOverlay polygons = new GMapOverlay("polygons");

      // marker
      GMarkerGoogle currentMarker;

      // polygons
      GMapPolygon polygon;

      // etc
      readonly Random rnd = new Random();
      readonly DescendingComparer ComparerIpStatus = new DescendingComparer();
      GMapMarkerRect CurentRectMarker = null;
      string mobileGpsLog = string.Empty;
      bool isMouseDown = false;
      PointLatLng start;
      PointLatLng end;

      public MainForm()
      {
         InitializeComponent();

         if(!DesignMode)
         {
            // add your custom map db provider
            //GMap.NET.CacheProviders.MySQLPureImageCache ch = new GMap.NET.CacheProviders.MySQLPureImageCache();
            //ch.ConnectionString = @"server=sql2008;User Id=trolis;Persist Security Info=True;database=gmapnetcache;password=trolis;";
            //MainMap.Manager.SecondaryCache = ch;

            // set your proxy here if need
            //GMapProvider.WebProxy = new WebProxy("10.2.0.100", 8080);
            //GMapProvider.WebProxy.Credentials = new NetworkCredential("ogrenci@bilgeadam.com", "bilgeada");

后面还有 2165 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。