Esempio n. 1
0
        private void btnTop3_Click(object sender, EventArgs e)
        {
            this.buttonAdv1.Visible = true;
            btnTop3.Visible         = false;
            //Filter the records based on a constraint and bound them to the chart control.
            object datasource = PopulationDataService.GetFilteredData();

            //Refresh the chart with the above datasource.
            this.BindChart(datasource);
        }
Esempio n. 2
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("Segow UI", 22.0f);
     CaptionForeColor        = Color.White;
     CaptionAlign            = HorizontalAlignment.Left;
     ShowIcon                = false;
     CaptionButtonColor      = Color.White;
     CaptionButtonHoverColor = Color.White;
     InitializeComponent();
     //Setup a database.
     PopulationDataService.PopulateDataBase();
 }
Esempio n. 3
0
 private void buttonAdv1_Click(object sender, EventArgs e)
 {
     btnTop3.Visible    = true;
     buttonAdv1.Visible = false;
     this.BindChart(PopulationDataService.GetCompleteList());
 }
Esempio n. 4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ChartAppearance.ApplyChartStyles(this.chartControl1);
     //Bind the chart to a datasource that contains the entire records from the database.
     this.BindChart(PopulationDataService.GetCompleteList());
 }