Beispiel #1
0
 private void colorStrip_Paint(object sender, PaintEventArgs e)
 {
     if (_vizualization3D != null)
     {
         var width = chart1.ChartAreas["ChartArea1"].Position.Size.Width > 0 ? (int)chart1.ChartAreas["ChartArea1"].Position.Size.Width * chart1.Size.Width / 100 : 1;
         _vizualization3D.GenerateStrip(PresetInfo, e.Graphics, 10, width);
     }
 }
Beispiel #2
0
        private void colorStrip_Paint(object sender, PaintEventArgs e)
        {
            //var coordinate = chart1.ChartAreas["ChartArea1"].AxisX.Maximum;
            var width = chart1.ChartAreas["ChartArea1"].Position.Size.Width > 0 ? (int)chart1.ChartAreas["ChartArea1"].Position.Size.Width * chart1.Size.Width / 100 : 1;


            //Console.WriteLine(chart1.ChartAreas["ChartArea1"].Position.Size.Width);
            _vizualization3D.GenerateStrip(e.Graphics, 10, width);
        }