Пример #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();
     this.InitializeData();
     ChartAppearance.ApplyChartStyles(this.chartControl1);
     this.chartControl1.Dock = System.Windows.Forms.DockStyle.Fill;
 }
Пример #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();
     this.InitializeData();
     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)));
 }