| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | DevExpress.XtraCharts.TextAnnotation textAnnotation1 = new DevExpress.XtraCharts.TextAnnotation(); |
| | | DevExpress.XtraCharts.ChartAnchorPoint chartAnchorPoint1 = new DevExpress.XtraCharts.ChartAnchorPoint(); |
| | | DevExpress.XtraCharts.FreePosition freePosition1 = new DevExpress.XtraCharts.FreePosition(); |
| | | 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(); |
| | |
| | | ((ISupportInitialize)lossBindingSource).BeginInit(); |
| | | ((ISupportInitialize)elevBindingSource).BeginInit(); |
| | | ((ISupportInitialize)chartControl1).BeginInit(); |
| | | ((ISupportInitialize)textAnnotation1).BeginInit(); |
| | | ((ISupportInitialize)xyDiagram1).BeginInit(); |
| | | ((ISupportInitialize)secondaryAxisy1).BeginInit(); |
| | | ((ISupportInitialize)series1).BeginInit(); |
| | | ((ISupportInitialize)areaSeriesView1).BeginInit(); |
| | | ((ISupportInitialize)series2).BeginInit(); |
| | |
| | | // |
| | | // chartControl1 |
| | | // |
| | | textAnnotation1.AnchorPoint = chartAnchorPoint1; |
| | | textAnnotation1.AnnotationID = 1; |
| | | textAnnotation1.AutoHeight = true; |
| | | textAnnotation1.AutoWidth = true; |
| | | textAnnotation1.ConnectorStyle = DevExpress.XtraCharts.AnnotationConnectorStyle.None; |
| | | textAnnotation1.Name = "Annotation 1"; |
| | | freePosition1.DockCorner = DevExpress.XtraCharts.DockCorner.RightTop; |
| | | freePosition1.InnerIndents.Left = 1160; |
| | | freePosition1.InnerIndents.Top = 35; |
| | | textAnnotation1.ShapePosition = freePosition1; |
| | | chartControl1.AnnotationRepository.AddRange(new DevExpress.XtraCharts.Annotation[] { textAnnotation1 }); |
| | | chartControl1.CrosshairOptions.ContentShowMode = DevExpress.XtraCharts.CrosshairContentShowMode.Label; |
| | | chartControl1.CrosshairOptions.ShowArgumentLabels = true; |
| | | chartControl1.CrosshairOptions.ShowValueLabels = true; |
| | | chartControl1.CrosshairOptions.ShowValueLine = true; |
| | | chartControl1.DataSource = elevBindingSource; |
| | | xyDiagram1.AxisX.CrosshairAxisLabelOptions.Visibility = DevExpress.Utils.DefaultBoolean.True; |
| | | xyDiagram1.AxisX.GridLines.Visible = true; |
| | | xyDiagram1.AxisX.MinorCount = 1; |
| | | xyDiagram1.AxisX.NumericScaleOptions.AutoGrid = false; |
| | |
| | | xyDiagram1.AxisX.VisibleInPanesSerializable = "-1"; |
| | | xyDiagram1.AxisX.WholeRange.EndSideMargin = 0D; |
| | | xyDiagram1.AxisX.WholeRange.StartSideMargin = 0D; |
| | | xyDiagram1.AxisY.Color = Color.FromArgb(255, 192, 0); |
| | | xyDiagram1.AxisY.GridLines.Visible = false; |
| | | xyDiagram1.AxisY.MinorCount = 1; |
| | | xyDiagram1.AxisY.NumericScaleOptions.AutoGrid = false; |
| | | xyDiagram1.AxisY.Tickmarks.MinorVisible = false; |
| | | xyDiagram1.AxisY.VisibleInPanesSerializable = "-1"; |
| | | secondaryAxisy1.AxisID = 0; |
| | | secondaryAxisy1.Color = Color.FromArgb(79, 129, 189); |
| | | secondaryAxisy1.MinorCount = 1; |
| | | secondaryAxisy1.Name = "Secondary AxisY 1"; |
| | | secondaryAxisy1.Tickmarks.MinorVisible = false; |
| | | secondaryAxisy1.VisibleInPanesSerializable = "-1"; |
| | | xyDiagram1.SecondaryAxesY.AddRange(new DevExpress.XtraCharts.SecondaryAxisY[] { secondaryAxisy1 }); |
| | | xyDiagram1.EnableAxisXScrolling = true; |
| | | xyDiagram1.EnableAxisXZooming = true; |
| | | chartControl1.Diagram = xyDiagram1; |
| | | chartControl1.Dock = DockStyle.Fill; |
| | | chartControl1.Legend.AlignmentHorizontal = DevExpress.XtraCharts.LegendAlignmentHorizontal.Center; |
| | |
| | | chartControl1.Legend.LegendID = -1; |
| | | chartControl1.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.CheckBox; |
| | | chartControl1.Location = new Point(0, 0); |
| | | chartControl1.Margin = new Padding(4, 5, 4, 5); |
| | | chartControl1.Name = "chartControl1"; |
| | | chartControl1.Padding.Bottom = 10; |
| | | chartControl1.Padding.Left = 20; |
| | | chartControl1.Padding.Right = 10; |
| | | chartControl1.Padding.Top = 10; |
| | | series1.ArgumentDataMember = "X"; |
| | | series1.CrosshairLabelPattern = "总水头:{V}"; |
| | | series1.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.CrosshairLabelPattern = "总水头:{V:N1}m"; |
| | | series1.CrosshairLabelVisibility = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.CrosshairTextOptions.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.DataSource = lossBindingSource; |
| | | series1.LabelsVisibility = DevExpress.Utils.DefaultBoolean.False; |
| | | series1.LegendTextPattern = "总水头"; |
| | | series1.Name = "SeriesLoss"; |
| | | series1.SeriesID = 0; |
| | | series1.ToolTipHintDataMember = "Name"; |
| | | series1.ToolTipSeriesPattern = ""; |
| | | 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.CrosshairLabelPattern = "高程:{V}"; |
| | | series2.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.CrosshairLabelPattern = "高程:{V:N1}m"; |
| | | series2.CrosshairLabelVisibility = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.CrosshairTextOptions.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.DataSource = elevBindingSource; |
| | | series2.LegendTextPattern = "高程"; |
| | | series2.Name = "SeriesElev"; |
| | | series2.SeriesID = 1; |
| | | series2.ToolTipHintDataMember = "Name"; |
| | | series2.ToolTipSeriesPattern = ""; |
| | | 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; |
| | |
| | | series1, |
| | | series2 |
| | | }; |
| | | chartControl1.Size = new Size(848, 569); |
| | | chartControl1.SeriesTemplate.ArgumentDataMember = "X"; |
| | | chartControl1.SeriesTemplate.ToolTipHintDataMember = "Name"; |
| | | chartControl1.SeriesTemplate.ValueDataMembersSerializable = "Y"; |
| | | chartControl1.Size = new Size(1211, 894); |
| | | chartControl1.TabIndex = 0; |
| | | chartControl1.ToolTipEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | chartControl1.ToolTipOptions.ShowForSeries = true; |
| | | chartControl1.CustomDrawCrosshair += chartControl1_CustomDrawCrosshair; |
| | | chartControl1.MouseClick += chartControl1_MouseClick; |
| | | // |
| | | // HydroSingleLossCurveCtrl |
| | | // HydroSingleWorkingLossCurveCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(10F, 22F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(chartControl1); |
| | | Name = "HydroSingleLossCurveCtrl"; |
| | | Size = new Size(848, 569); |
| | | Margin = new Padding(4, 5, 4, 5); |
| | | Name = "HydroSingleWorkingLossCurveCtrl"; |
| | | Size = new Size(1211, 894); |
| | | ((ISupportInitialize)lossBindingSource).EndInit(); |
| | | ((ISupportInitialize)elevBindingSource).EndInit(); |
| | | ((ISupportInitialize)secondaryAxisy1).EndInit(); |
| | | ((ISupportInitialize)textAnnotation1).EndInit(); |
| | | ((ISupportInitialize)xyDiagram1).EndInit(); |
| | | ((ISupportInitialize)areaSeriesView1).EndInit(); |
| | | ((ISupportInitialize)series1).EndInit(); |