| | |
| | | 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; |
| | |
| | | xyDiagram1.AxisX.WholeRange.StartSideMargin = 0D; |
| | | xyDiagram1.AxisY.GridLines.Visible = false; |
| | | xyDiagram1.AxisY.MinorCount = 1; |
| | | xyDiagram1.AxisY.NumericScaleOptions.AutoGrid = false; |
| | | xyDiagram1.AxisY.Tickmarks.MinorVisible = false; |
| | | xyDiagram1.AxisY.VisibleInPanesSerializable = "-1"; |
| | | xyDiagram1.EnableAxisXScrolling = true; |
| | |
| | | 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.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.True; |
| | | series1.CrosshairLabelPattern = "总水头:{V}m"; |
| | | 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; |
| | |
| | | series2.ArgumentDataMember = "X"; |
| | | series2.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.CrosshairHighlightPoints = DevExpress.Utils.DefaultBoolean.True; |
| | | series2.CrosshairLabelPattern = "高程:{V}m"; |
| | | 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"; |
| | |
| | | chartControl1.SeriesTemplate.ArgumentDataMember = "X"; |
| | | chartControl1.SeriesTemplate.ToolTipHintDataMember = "Name"; |
| | | chartControl1.SeriesTemplate.ValueDataMembersSerializable = "Y"; |
| | | chartControl1.Size = new Size(848, 569); |
| | | chartControl1.Size = new Size(1211, 894); |
| | | chartControl1.TabIndex = 0; |
| | | chartControl1.ToolTipEnabled = DevExpress.Utils.DefaultBoolean.True; |
| | | chartControl1.ToolTipOptions.ShowForSeries = true; |
| | |
| | | // |
| | | // HydroSingleWorkingLossCurveCtrl |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleDimensions = new SizeF(10F, 22F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(chartControl1); |
| | | Margin = new Padding(4, 5, 4, 5); |
| | | Name = "HydroSingleWorkingLossCurveCtrl"; |
| | | Size = new Size(848, 569); |
| | | Size = new Size(1211, 894); |
| | | ((ISupportInitialize)lossBindingSource).EndInit(); |
| | | ((ISupportInitialize)elevBindingSource).EndInit(); |
| | | ((ISupportInitialize)textAnnotation1).EndInit(); |