Example #1
0
 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();
     ChartAppearance.ApplyChartStyles(chartControl);
     this.BackColor         = Color.White;
     this.chartControl.Dock = DockStyle.Fill;
 }
Example #2
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();
     ChartAppearance.ApplyChartStyles(chartControl);
     this.BackColor           = Color.White;
     this.chartControl.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)));
 }