示例#1
0
 private void galleryControl1_Gallery_ItemClick(object sender, GalleryItemClickEventArgs e)
 {
     string mapPath = e.Item.Tag.ToString();
     frmMapMain frmMap = new frmMapMain(this);
     frmMap.MapPath = mapPath;
     frmMap.Show();
 }
示例#2
0
 private void labelControl1_Click(object sender, EventArgs e)
 {
     LabelControl lbl = (LabelControl)sender;
     string mapPath = dataPath + "\\" + lbl.Text + ".mxd";
     if (!File.Exists(mapPath))
     {
         MessageBox.Show("地图文件不存在.");
         return;
     }
     frmMapMain frmMap = new frmMapMain(this);
     frmMap.MapPath = mapPath;
     frmMap.Show();
 }