rq
cloudflight
2024-05-08 7f3f33c7af8aa852af4029d0d6070c0228e337ba
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
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);
        }
    }
}