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);
|
}
|
}
|
}
|