cloudflight
2024-07-06 d907f85dd2d7ebf702ffd478fcf5d47c2a29560c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Hydro.MapUI;
using Hydro.MapView;
using Hydro.MapView.Common;
 
namespace Hydro.ClientTool
{
    public partial class Form2 : Form
    {
        public Form2()
        {
 
            InitializeComponent();
        }
 
        private void 打开OToolStripMenuItem_Click(object sender, EventArgs e)
        {
            模板管理 form = new 模板管理();
            if (form.ShowDialog() == DialogResult.OK)
            {
                var temp = TemplateList.GetTemplate(form.TemplateID);
                mapViewer1.SetData(temp);
            }
 
        }
 
        private void Form2_Load(object sender, EventArgs e)
        {
            this.mapViewer1.showToolBar = true;
            if (TemplateList.Inited == false)
            {
                TemplateList.Init();
            }
            GlobalObject.map = this.mapViewer1;
            ////GlobalObject.PropertyForm = this.propertyForm1;
        }
 
        private void Form2_KeyDown(object sender, KeyEventArgs e)
        {
            mapViewer1.MapViewer_KeyDown(sender, e);
        }
    }
}