private void lklLoadMap_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     MapGis.ClearAllStation();
     MapGis.ClearAllStatic();
     new MapXml().LoadAllMapConfig(ConfigXml, MapGis);
     if (IsOut)
     {
         this.picInOut_Click(this, new EventArgs());
     }
 }
 private void ShowMap()
 {
     try
     {
         //this.MapGis.MapFilePath = Application.StartupPath + MapFilePath;
         try
         {
             DataTable dt     = dpicbll.GetBackPicByFileID(FileID);
             byte[]    buffer = (byte[])dt.Rows[0][0];
             Graphics.Config.FileChanger fc = new KJ128NMainRun.Graphics.Config.FileChanger();
             if (!System.IO.Directory.Exists(Application.StartupPath + "\\MapGis\\DMap"))
             {
                 System.IO.Directory.CreateDirectory(Application.StartupPath + "\\MapGis\\DMap");
             }
             fc.CreateFile(Application.StartupPath + "\\MapGis\\DMap\\" + dt.Rows[0][1].ToString(), buffer);
             this.MapGis.MapFilePath = Application.StartupPath + "\\MapGis\\DMap\\" + dt.Rows[0][1].ToString();
             System.IO.File.Delete(Application.StartupPath + "\\MapGis\\DMap\\" + dt.Rows[0][1].ToString());
         }
         catch (Exception ex)
         {
             MessageBox.Show("无法识别的图片!", "提示", MessageBoxButtons.OK);
             return;
         }
         if (Convert.ToInt32(ntbMin.Text) > Convert.ToInt32(ntbMax.Text))
         {
             throw new Exception();
         }
         this.MapGis.MinWidth = Convert.ToInt32(ntbMin.Text);
         this.MapGis.MaxWidth = Convert.ToInt32(ntbMax.Text);
     }
     catch (Exception ex)
     {
         //MessageBox.Show("图层显示范围没有配置或配置不正确,请检查!", "提示", MessageBoxButtons.OK);
         //return;
     }
     MapGis.ClearAllStation();
     MapGis.ClearAllStatic();
     AddSelectedStations();
     LoadStatic();
     HasMonied = true;
     MapGis.FlashAll();
     pnl2.Visible = true;
     pnl3.Visible = true;
 }