Ejemplo n.º 1
0
 public CustomLegendOptionsControl(ChartElementModel model) : base(model)
 {
     InitializeComponent();
     if (!(model is LegendModel))
     {
         throw new ArgumentException("The model must have the LegendModel type.");
     }
 }
Ejemplo n.º 2
0
        private void UpDateChart(ChartElementModel chart, double fullsum, double chartsum, double startprocess)
        {
            chart.StartAngle = startprocess;

            var persent = chartsum / fullsum;

            chart.EndAngle  = startprocess + 360.0 * persent;
            chart.TotalTime = chartsum;
        }