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.ClientTool.Properties;
|
|
namespace Hydro.ClientTool
|
{
|
public partial class Form1 : Form
|
{
|
public Form1()
|
{
|
InitializeComponent();
|
}
|
|
private void Form1_Load(object sender, EventArgs e)
|
{
|
Hydro.WinfrmUI.ViewBrowser mapViewer1 = new Hydro.WinfrmUI.ViewBrowser();
|
mapViewer1._IsEditMode = true;
|
mapViewer1._newTemplate = null;
|
mapViewer1._ShowJunction = true;
|
mapViewer1._ShowValve = true;
|
mapViewer1.BackColor = System.Drawing.Color.Transparent;
|
mapViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
mapViewer1.junction_multiply = 1F;
|
mapViewer1.Link_multiply = 1F;
|
mapViewer1.Location = new System.Drawing.Point(0, 0);
|
mapViewer1.Name = "mapViewer1";
|
mapViewer1.Rotation = 0D;
|
mapViewer1.RotationF = 90D;
|
mapViewer1.showToolBar = true;
|
mapViewer1.Size = new System.Drawing.Size(1000, 666);
|
mapViewer1.TabIndex = 0;
|
mapViewer1.zoom = 1F;
|
mapViewer1.showToolBar = true;
|
if (MapView.TemplateList.Inited == false)
|
{
|
MapView.TemplateList.Init();
|
}
|
|
this.Controls.Add(mapViewer1);
|
}
|
}
|
}
|