Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 private void StylesPanelOnUpdateData(object sender, StyleSettings e)
 {
     UpdateChartSettings(e);
 }