Exemple #1
0
        void UpdateChartSettings(StyleSettings style)
        {
            var data = new ChartSettings();

            switch (boxGroupMode.SelectedIndex)
            {
            case 0:
                data.GroupingMode = GroupingMode.Normal;
                break;

            case 1:
                data.GroupingMode = GroupingMode.Sum;
                break;

            case 2:
                data.GroupingMode = GroupingMode.Average;
                break;

            case 3:
                data.GroupingMode = GroupingMode.AverageByLiquid;
                break;
            }

            data.ShowAnnotations = checkShowAnno.Checked;

            data.StyleSettings = style;

            foreach (ChartControl item in tableLayoutPanel1.Controls)
            {
                item.UpdateSettings(data);
            }
        }
Exemple #2
0
 private void StylesPanelOnUpdateData(object sender, StyleSettings e)
 {
     UpdateChartSettings(e);
 }