Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="gisMap">地图对象</param>
 /// <param name="type">类型,1=线路,2=区域</param>
 public ShowPathForm(GisMap gisMap, int type)
 {
     this.InitializeComponent();
     this.gisMap   = gisMap;
     this.pathType = type;
     if (type == 1)
     {
         this.pathId       = "PathId";
         this.pathName     = "PathName";
         this.dotString    = "AlarmPathDot";
         this.Text         = "偏移路线显示控制";
         this.grpMain.Text = "选择预显示路线名称";
     }
     else
     {
         this.pathId       = "RegionId";
         this.pathName     = "RegionName";
         this.dotString    = "RegionDot";
         this.Text         = "区域显示控制";
         this.grpMain.Text = "选择预显示区域名称";
     }
     this.backgroundWorker.WorkerReportsProgress = true;
     this.backgroundWorker.DoWork             += new DoWorkEventHandler(this.backRunWork);
     this.backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backRunWorkerCompleted);
     this.backgroundWorker.ProgressChanged    += new ProgressChangedEventHandler(this.backWorkerProgressChanged);
 }
Пример #2
0
 public MapFlag(string sLon, string sLat, GisMap CurrentMap)
 {
     this.InitializeComponent();
     base.seSkin.SkinFile = Variable.sSkinFiles[int.Parse(Variable.sSkinDataIndex)];
     this.numLon.Value    = decimal.Parse(sLon);
     this.numLat.Value    = decimal.Parse(sLat);
     this.m_CurrentMap    = CurrentMap;
 }
Пример #3
0
 public FlagForm(GisMap CurrentMap)
 {
     this.InitializeComponent();
     this.m_CurrentMap = CurrentMap;
 }