public Form1() { BorderColor = Color.FromArgb(0xFF, 0xCD, 0xCD, 0xCD); BorderThickness = 3; CaptionBarHeight = (int)DpiAware.LogicalToDeviceUnits(75.0f); CaptionBarColor = Color.FromArgb(0xFF, 0x1B, 0xA1, 0xE2); CaptionFont = new Font("Segoe UI", 22.0f); CaptionForeColor = Color.White; CaptionAlign = HorizontalAlignment.Left; ShowIcon = false; CaptionButtonColor = Color.White; CaptionButtonHoverColor = Color.White; InitializeComponent(); SeriesData(); this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; ChartAppearance.ApplyChartStyles(this.chartControl1); this.chartControl1.Dock = DockStyle.Fill; this.comboBox1.SelectedIndex = 0; }
public Form1() { BorderColor = Color.FromArgb(0xFF, 0xCD, 0xCD, 0xCD); BorderThickness = 3; CaptionBarHeight = 75; CaptionBarColor = Color.FromArgb(0xFF, 0x1B, 0xA1, 0xE2); CaptionFont = new Font("Segoe UI", 22.0f); CaptionForeColor = Color.White; CaptionAlign = HorizontalAlignment.Left; ShowIcon = false; CaptionButtonColor = Color.White; CaptionButtonHoverColor = Color.White; InitializeComponent(); SeriesData(); this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; ChartAppearance.ApplyChartStyles(this.chartControl1); this.chartControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.comboBox1.SelectedIndex = 0; }