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
52
53
54
| using Yw.Model;
| using Yw.Vmo;
|
| namespace HStation.WinFrmUI
| {
| public partial class SimulationMultiAnalyDlg : DevExpress.XtraBars.Ribbon.RibbonForm
| {
| public SimulationMultiAnalyDlg()
| {
| InitializeComponent();
| this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
| }
|
| /// <summary>
| /// 绑定数据
| /// </summary>
| public void SetBindingData
| (
| Yw.Model.HydroModelInfo hydroInfo,
| List<HydroMonitorVmo> allMonitorList,
| HydroWorkingVmo working,
| HydroNodeInfo node,
| HydroCalcuResult calcuResult = null,
| bool isHead = false,
| List<HydroEvaluationVmo> allEvaluationList = null
| )
| {
| if (hydroInfo == null)
| {
| return;
| }
| if (working == null)
| {
| return;
| }
| if (node == null)
| {
| return;
| }
| var vm = new SimulationMultiAnalyViewModel();
| vm.HydroInfo = hydroInfo;
| vm.Working = working;
| vm.Accuracy = HydroAccuracyHelper.Create(hydroInfo, allMonitorList, working, calcuResult, isHead, allEvaluationList);
| vm.EnergyAnaly = HydroEnergyAnalyHelper.Create(hydroInfo, working, calcuResult, isHead, allEvaluationList);
| vm.LossCurve = HydroLossCurveHelper.Create(hydroInfo, working, node, calcuResult, isHead, allEvaluationList);
| vm.LossStatistics = HydroLossStatisticsHelper.Create(hydroInfo, working, calcuResult, isHead, allEvaluationList);
| this.simulationMultiAnalyCtrl1.SetBindingData(vm);
| }
|
|
|
|
| }
| }
|
|