lixiaojun
2024-11-25 839d9f96be96108dc9ca9359b3db32596e7e2454
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
namespace Yw.WinFrmUI
{
    partial class HydroSingleLossCurveCtrl
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Component Designer generated code
 
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();
            DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram();
            DevExpress.XtraCharts.SecondaryAxisY secondaryAxisy1 = new DevExpress.XtraCharts.SecondaryAxisY();
            DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series();
            DevExpress.XtraCharts.AreaSeriesView areaSeriesView1 = new DevExpress.XtraCharts.AreaSeriesView();
            DevExpress.XtraCharts.Series series2 = new DevExpress.XtraCharts.Series();
            DevExpress.XtraCharts.AreaSeriesView areaSeriesView2 = new DevExpress.XtraCharts.AreaSeriesView();
            lossBindingSource = new BindingSource(components);
            elevBindingSource = new BindingSource(components);
            chartControl1 = new DevExpress.XtraCharts.ChartControl();
            ((ISupportInitialize)lossBindingSource).BeginInit();
            ((ISupportInitialize)elevBindingSource).BeginInit();
            ((ISupportInitialize)chartControl1).BeginInit();
            ((ISupportInitialize)xyDiagram1).BeginInit();
            ((ISupportInitialize)secondaryAxisy1).BeginInit();
            ((ISupportInitialize)series1).BeginInit();
            ((ISupportInitialize)areaSeriesView1).BeginInit();
            ((ISupportInitialize)series2).BeginInit();
            ((ISupportInitialize)areaSeriesView2).BeginInit();
            SuspendLayout();
            // 
            // lossBindingSource
            // 
            lossBindingSource.DataSource = typeof(HydroLossCurvePointVieModel);
            // 
            // elevBindingSource
            // 
            elevBindingSource.DataSource = typeof(HydroLossCurvePointVieModel);
            // 
            // chartControl1
            // 
            xyDiagram1.AxisX.VisibleInPanesSerializable = "-1";
            xyDiagram1.AxisX.WholeRange.EndSideMargin = 0D;
            xyDiagram1.AxisX.WholeRange.StartSideMargin = 0D;
            xyDiagram1.AxisY.VisibleInPanesSerializable = "-1";
            secondaryAxisy1.AxisID = 0;
            secondaryAxisy1.Name = "Secondary AxisY 1";
            secondaryAxisy1.VisibleInPanesSerializable = "-1";
            xyDiagram1.SecondaryAxesY.AddRange(new DevExpress.XtraCharts.SecondaryAxisY[] { secondaryAxisy1 });
            chartControl1.Diagram = xyDiagram1;
            chartControl1.Dock = DockStyle.Fill;
            chartControl1.Legend.AlignmentHorizontal = DevExpress.XtraCharts.LegendAlignmentHorizontal.Center;
            chartControl1.Legend.Direction = DevExpress.XtraCharts.LegendDirection.LeftToRight;
            chartControl1.Legend.LegendID = -1;
            chartControl1.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.CheckBox;
            chartControl1.Location = new Point(0, 0);
            chartControl1.Name = "chartControl1";
            series1.ArgumentDataMember = "X";
            series1.DataSource = lossBindingSource;
            series1.LegendTextPattern = "总水头";
            series1.Name = "SeriesLoss";
            series1.SeriesID = 0;
            series1.ValueDataMembersSerializable = "Y";
            areaSeriesView1.Color = Color.FromArgb(255, 192, 0);
            areaSeriesView1.EmptyPointOptions.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Solid;
            series1.View = areaSeriesView1;
            series2.ArgumentDataMember = "X";
            series2.DataSource = elevBindingSource;
            series2.LegendTextPattern = "高程";
            series2.Name = "SeriesElev";
            series2.SeriesID = 1;
            series2.ValueDataMembersSerializable = "Y";
            areaSeriesView2.AxisYName = "Secondary AxisY 1";
            areaSeriesView2.Color = Color.FromArgb(79, 129, 189);
            areaSeriesView2.EmptyPointOptions.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Solid;
            areaSeriesView2.Transparency = 0;
            series2.View = areaSeriesView2;
            chartControl1.SeriesSerializable = new DevExpress.XtraCharts.Series[]
    {
    series1,
    series2
    };
            chartControl1.Size = new Size(848, 569);
            chartControl1.TabIndex = 0;
            // 
            // HydroSingleLossCurveCtrl
            // 
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(chartControl1);
            Name = "HydroSingleLossCurveCtrl";
            Size = new Size(848, 569);
            ((ISupportInitialize)lossBindingSource).EndInit();
            ((ISupportInitialize)elevBindingSource).EndInit();
            ((ISupportInitialize)secondaryAxisy1).EndInit();
            ((ISupportInitialize)xyDiagram1).EndInit();
            ((ISupportInitialize)areaSeriesView1).EndInit();
            ((ISupportInitialize)series1).EndInit();
            ((ISupportInitialize)areaSeriesView2).EndInit();
            ((ISupportInitialize)series2).EndInit();
            ((ISupportInitialize)chartControl1).EndInit();
            ResumeLayout(false);
        }
 
        #endregion
 
        private DevExpress.XtraCharts.ChartControl chartControl1;
        private BindingSource lossBindingSource;
        private BindingSource elevBindingSource;
    }
}