| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series(); |
| | | DevExpress.XtraCharts.PieSeriesView pieSeriesView1 = new DevExpress.XtraCharts.PieSeriesView(); |
| | | DevExpress.XtraCharts.DoughnutSeriesLabel doughnutSeriesLabel1 = new DevExpress.XtraCharts.DoughnutSeriesLabel(); |
| | | DevExpress.XtraCharts.DoughnutSeriesView doughnutSeriesView1 = new DevExpress.XtraCharts.DoughnutSeriesView(); |
| | | bindingSource1 = new BindingSource(components); |
| | | chartControl1 = new DevExpress.XtraCharts.ChartControl(); |
| | | ((ISupportInitialize)bindingSource1).BeginInit(); |
| | | ((ISupportInitialize)chartControl1).BeginInit(); |
| | | ((ISupportInitialize)series1).BeginInit(); |
| | | ((ISupportInitialize)pieSeriesView1).BeginInit(); |
| | | ((ISupportInitialize)doughnutSeriesLabel1).BeginInit(); |
| | | ((ISupportInitialize)doughnutSeriesView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // bindingSource1 |
| | | // |
| | | bindingSource1.DataSource = typeof(HydroCatalogLossScaleViewModel); |
| | | // |
| | | // chartControl1 |
| | | // |
| | | chartControl1.Dock = DockStyle.Fill; |
| | | chartControl1.Legend.LegendID = -1; |
| | | chartControl1.Legend.Visibility = DevExpress.Utils.DefaultBoolean.True; |
| | | chartControl1.Location = new Point(0, 0); |
| | | chartControl1.Name = "chartControl1"; |
| | | series1.ArgumentDataMember = "CatalogName"; |
| | | series1.DataSource = bindingSource1; |
| | | doughnutSeriesLabel1.TextPattern = "{A}({V:N2}):{VP:P2}"; |
| | | series1.Label = doughnutSeriesLabel1; |
| | | series1.Name = "Series 1"; |
| | | series1.SeriesID = 0; |
| | | series1.View = pieSeriesView1; |
| | | series1.SeriesID = 1; |
| | | series1.ValueDataMembersSerializable = "Loss"; |
| | | doughnutSeriesView1.TotalLabel.TextPattern = "总损失: {TV:#.##}"; |
| | | doughnutSeriesView1.TotalLabel.Visible = true; |
| | | series1.View = doughnutSeriesView1; |
| | | chartControl1.SeriesSerializable = new DevExpress.XtraCharts.Series[] |
| | | { |
| | | series1 |
| | |
| | | Controls.Add(chartControl1); |
| | | Name = "HydroSingleLossScaleCtrl"; |
| | | Size = new Size(884, 602); |
| | | ((ISupportInitialize)pieSeriesView1).EndInit(); |
| | | ((ISupportInitialize)bindingSource1).EndInit(); |
| | | ((ISupportInitialize)doughnutSeriesLabel1).EndInit(); |
| | | ((ISupportInitialize)doughnutSeriesView1).EndInit(); |
| | | ((ISupportInitialize)series1).EndInit(); |
| | | ((ISupportInitialize)chartControl1).EndInit(); |
| | | ResumeLayout(false); |
| | |
| | | #endregion |
| | | |
| | | private DevExpress.XtraCharts.ChartControl chartControl1; |
| | | private BindingSource bindingSource1; |
| | | } |
| | | } |