yangyin
2024-08-20 98e49c0dd42840a094837f7acae532bc237a719a
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
using DevExpress.XtraEditors;
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;
 
namespace Yw.WinFrmUI
{
    public partial class HydroQ3dViewPage : Yw.WinFrmUI.DocumentPage
    {
        public HydroQ3dViewPage()
        {
            InitializeComponent();
            this.PageTitle.Caption = "水力模型";
        }
 
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        /// <param name="hydroModelId">水力模型id</param>
        public async void SetBindingData(Yw.Model.HydroModelInfo rhs)
        {
            this.PageTitle.Caption = $"{rhs.Name}\r\n水力模型";
 
            var netWork = HydroQ3dTransferHelper.ToNetworkViewModel(rhs);
 
            this.drawer1.SetData(netWork);
            //var temp = new Template();
            //temp.network = netWork;
            //mapViewer1.SetData(temp);
        }
 
        /// <summary>
        /// 初始化数据源
        /// </summary>
        public override void InitialDataSource()
        {
            base.InitialDataSource();
        }
    }
}